Fix CMake check for linux/if.h
CMake not only checks if the header exists, but tries to include and compile it, which fails with linux/if.h since it needs another header which it does not include itself. Manually include it as a CFLAG in the CHECK_INCLUDE_FILE call to fix it.master
parent
e24ecee2cc
commit
dfc11f5fbd
|
@ -184,7 +184,7 @@ IF (ENABLE_VRF)
|
|||
MESSAGE(WARNING "SO_BINDTODEVICE not found in sys/socket.h, will not build with ENABLE_VRF. Check Linux Kernel's userspace headers (eg: linux-libc-dev)")
|
||||
ENDIF (SO_BINDTODEVICE_FOUND)
|
||||
ENDIF (ENABLE_VRF)
|
||||
CHECK_INCLUDE_FILE("linux/if.h" LINUX_IF_H_FOUND)
|
||||
CHECK_INCLUDE_FILE("linux/if.h" LINUX_IF_H_FOUND "-include sys/socket.h")
|
||||
|
||||
### MongoDB
|
||||
|
||||
|
|
Loading…
Reference in New Issue