From cc74af00ba7f6792fda86b49fb25959c31456646 Mon Sep 17 00:00:00 2001 From: o9000 Date: Sun, 5 Mar 2017 11:45:38 +0100 Subject: [PATCH] Define _DEFAULT_SOURCE with _BSD_SOURCE (issue #625) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c7b201d..199cf3a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -82,7 +82,7 @@ if( NOT IMLIB_BUILD_WITH_X ) message( FATAL_ERROR "Imlib is not built with X support" ) endif( NOT IMLIB_BUILD_WITH_X ) -add_definitions( -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE ) +add_definitions( -D_POSIX_C_SOURCE=200809L -D_BSD_SOURCE -D_DEFAULT_SOURCE ) include_directories( ${PROJECT_BINARY_DIR} src