From eca70bce983c89ace961f1d617f5ffb55db24676 Mon Sep 17 00:00:00 2001 From: Andy Cedilnik Date: Fri, 17 Jan 2003 08:47:03 -0500 Subject: [PATCH] Fix gcc32 -ansi problem --- Source/CTest/Curl/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt index 7a0dcd957..38c75c8ed 100644 --- a/Source/CTest/Curl/CMakeLists.txt +++ b/Source/CTest/Curl/CMakeLists.txt @@ -119,6 +119,10 @@ CHECK_LIBRARY_EXISTS("${CURL_LIBS}" dlopen "" HAVE_DLOPEN) SET(CMAKE_REQUIRED_LIBRARIES ${CURL_LIBS}) 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("inttypes.h" HAVE_INTTYPES_H) CHECK_INCLUDE_FILE("alloca.h" HAVE_ALLOCA_H)