summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-17 13:47:03 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2003-01-17 13:47:03 (GMT)
commiteca70bce983c89ace961f1d617f5ffb55db24676 (patch)
tree7e058de77267d4f73aa518a3d56cf0840bcc9730
parent858f644dd9720a5b0ba9f87c59c6a0607322f794 (diff)
downloadCMake-eca70bce983c89ace961f1d617f5ffb55db24676.zip
CMake-eca70bce983c89ace961f1d617f5ffb55db24676.tar.gz
CMake-eca70bce983c89ace961f1d617f5ffb55db24676.tar.bz2
Fix gcc32 -ansi problem
-rw-r--r--Source/CTest/Curl/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/CTest/Curl/CMakeLists.txt b/Source/CTest/Curl/CMakeLists.txt
index 7a0dcd9..38c75c8 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)