From: Vsevolod Stakhov Date: Fri, 11 Dec 2015 19:18:25 +0000 (+0000) Subject: Try to fix build X-Git-Tag: 1.1.0~327 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3effda3570a8b543fdfcee58306df0f72d8918f3;p=rspamd.git Try to fix build --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ca4df933..67ff501cd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)