]> granicus.if.org Git - curl/commitdiff
cmake: drop _BSD_SOURCE macro usage
authorPeter Wu <peter@lekensteyn.nl>
Fri, 31 Oct 2014 11:32:38 +0000 (12:32 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 3 Nov 2014 08:10:54 +0000 (09:10 +0100)
autotools does not use features.h nor _BSD_SOURCE. As this macro
triggers warnings since glibc 2.20, remove it. It should not have
functional differences.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
CMake/Platforms/WindowsCache.cmake
CMakeLists.txt
lib/CMakeLists.txt

index 3533a54136849990ca998e11d222dbb952476197..53d1c6dd77af3a78e47edd676d08bce50bc5857c 100644 (file)
@@ -14,7 +14,6 @@ if(NOT UNIX)
     set(HAVE_ARPA_INET_H 0)
     set(HAVE_DLFCN_H 0)
     set(HAVE_FCNTL_H 1)
-    set(HAVE_FEATURES_H 0)
     set(HAVE_INTTYPES_H 0)
     set(HAVE_IO_H 1)
     set(HAVE_MALLOC_H 1)
index b99751029b054215a9c35f2d8c79da094b44865c..cbf6c0e4cffd5fae31a9f426daf585c98c3dc0d8 100644 (file)
@@ -508,9 +508,6 @@ if(CMAKE_USE_GSSAPI)
   endif()
 endif()
 
-# If we have features.h, then do the _BSD_SOURCE magic
-check_include_file("features.h"       HAVE_FEATURES_H)
-
 # Check for header files
 if(NOT UNIX)
   check_include_file_concat("ws2tcpip.h"     HAVE_WS2TCPIP_H)
index 3ad62df1fa8b27bcb7e1b8c7ccbd533a475f2b77..78fde4d8fbe3f089b77ab9e25451438904ec0515 100644 (file)
@@ -48,25 +48,6 @@ endif()
 # )
 # ENDIF(NOT HAVE_STRTOLL AND NOT HAVE__STRTOI64)
 
-if(HAVE_FEATURES_H)
-  set_source_files_properties(
-    cookie.c
-    easy.c
-    formdata.c
-    getenv.c
-    nonblock.c
-    hash.c
-    http.c
-    if2ip.c
-    mprintf.c
-    multi.c
-    sendf.c
-    telnet.c
-    transfer.c
-    url.c
-    COMPILE_FLAGS -D_BSD_SOURCE)
-endif(HAVE_FEATURES_H)
-
 
 # The rest of the build