From 89720b4e81e2da2d794a0e96ff03a13b573b6be9 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Fri, 20 Jul 2012 20:59:07 +0200 Subject: [PATCH] Add preprocessor defitions that request posix features --- cmake/Conky.cmake | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmake/Conky.cmake b/cmake/Conky.cmake index 65204d28..bbbada06 100644 --- a/cmake/Conky.cmake +++ b/cmake/Conky.cmake @@ -64,8 +64,9 @@ find_package(Threads) set(conky_libs ${CMAKE_THREAD_LIBS_INIT}) set(conky_includes ${CMAKE_BINARY_DIR}) -add_definitions(-D_LARGEFILE64_SOURCE) # Standard definitions -set(CMAKE_REQUIRED_DEFINITIONS "${CMAKE_REQUIRED_DEFINITIONS} -D_LARGEFILE64_SOURCE") +add_definitions(-D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L) # Standard definitions +set(CMAKE_REQUIRED_DEFINITIONS + "${CMAKE_REQUIRED_DEFINITIONS} -D_LARGEFILE64_SOURCE -D_POSIX_C_SOURCE=200809L") if(OS_DRAGONFLY) set(conky_libs ${conky_libs} -L/usr/pkg/lib)