]> source.dussan.org Git - rspamd.git/commitdiff
Try to fix build
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 11 Dec 2015 19:18:25 +0000 (19:18 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 11 Dec 2015 19:18:25 +0000 (19:18 +0000)
CMakeLists.txt

index 4ca4df93371157c9b11d44bb2458ece644271861..67ff501cdaa9a879e9401afb5be7d206069361bf 100644 (file)
@@ -513,6 +513,7 @@ IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
 ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
 
 IF(CMAKE_SYSTEM_NAME STREQUAL "Linux")
+       SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -D_GNU_SOURCE")
        ADD_DEFINITIONS(-D_GNU_SOURCE -DLINUX)
        IF(BUILD_CPU_MODE STREQUAL "32")
                ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE)