Fix gcc32 -ansi problem
This commit is contained in:
parent
858f644dd9
commit
eca70bce98
|
@ -119,6 +119,10 @@ CHECK_LIBRARY_EXISTS("${CURL_LIBS}" dlopen "" HAVE_DLOPEN)
|
||||||
|
|
||||||
SET(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS})
|
SET(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS})
|
||||||
CHECK_INCLUDE_FILE("features.h" HAVE_FEATURES_H)
|
CHECK_INCLUDE_FILE("features.h" HAVE_FEATURES_H)
|
||||||
|
IF(HAVE_FEATURES_H)
|
||||||
|
SET_SOURCE_FILES_PROPERTIES(if2ip.c COMPILE_FLAGS -D_BSD_SOURCE)
|
||||||
|
ENDIF(HAVE_FEATURES_H)
|
||||||
|
|
||||||
CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
|
CHECK_INCLUDE_FILE("sys/types.h" HAVE_SYS_TYPES_H)
|
||||||
CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H)
|
CHECK_INCLUDE_FILE("inttypes.h" HAVE_INTTYPES_H)
|
||||||
CHECK_INCLUDE_FILE("alloca.h" HAVE_ALLOCA_H)
|
CHECK_INCLUDE_FILE("alloca.h" HAVE_ALLOCA_H)
|
||||||
|
|
Loading…
Reference in New Issue