This repository has been archived on 2024-11-07. You can view files and clone it, but cannot push or open issues or pull requests.
openvas-manager/openvas-manager-5.0.11-glibc-2.22.patch

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)