From f76cfbca4f14f87a66552dff1bd35e9a9bc691aa Mon Sep 17 00:00:00 2001 From: Jari Vetoniemi Date: Sat, 17 Jan 2015 18:52:21 +0200 Subject: Get rid of _DEFAULT_SOURCE #defines, set this in cmake and also use secure_getenv where it makes sense. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index db40db7..9bf2b2c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,8 +9,8 @@ INCLUDE(CTest) INCLUDE(GetGitRevisionDescription) get_git_head_revision(GIT_REFSPEC GIT_SHA1) -# C99 -ADD_DEFINITIONS(-std=c99) +# C99 and _GNU_SOURCE for secure_getenv +ADD_DEFINITIONS(-std=c99 -D_GNU_SOURCE) # Compile library ADD_SUBDIRECTORY(lib) -- cgit v1.2.3-70-g09d2