openvas-manager/openvas-manager-5.0.11-glib...

12 lines
690 B
Diff

--- openvas-manager-5.0.11/CMakeLists.txt.orig 2016-02-05 23:51:52.082034969 +0100
+++ openvas-manager-5.0.11/CMakeLists.txt 2016-02-05 23:52:18.876024033 +0100
@@ -252,7 +252,7 @@
set (HARDENING_FLAGS "-Wformat -Wformat-security -O2 -D_FORTIFY_SOURCE=2 -fstack-protector -Wl,-z,relro -Wl,-z,now")
set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Werror")
-set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_BSD_SOURCE -D_ISOC99_SOURCE -D_SVID_SOURCE -D_FILE_OFFSET_BITS=64")
+set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${HARDENING_FLAGS} -Wall -D_DEFAULT_SOURCE -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64")
add_subdirectory (src)