]> granicus.if.org Git - cronie/commitdiff
Move #define _GNU_SOURCE from security.c to CFLAGS.
authorTomas Janousek <tjanouse@redhat.com>
Mon, 27 Aug 2007 17:43:14 +0000 (19:43 +0200)
committerTomas Janousek <tjanouse@redhat.com>
Mon, 27 Aug 2007 17:43:14 +0000 (19:43 +0200)
(it's needed for HAVE_SELINUX as well)

Signed-off-by: Tomas Janousek <tjanouse@redhat.com>
configure.ac
src/security.c

index 31437eaddd507548f8db69cc4db7c3738382a6e6..d5932d9c214673237ddeb1f0b53fb97986c98031 100644 (file)
@@ -5,7 +5,7 @@ AC_PREREQ(2.7)
 
 VERSION="4.2"
 if test "X$CFLAGS" = "X"; then
-CFLAGS="-O2 -g -Wall -Wno-unused -Wno-comment"
+CFLAGS="-O2 -g -Wall -Wno-unused -Wno-comment -D_GNU_SOURCE"
 LDFLAGS="-pie"
 fi
 
index 7530bbc4561d87118660c69e581b1fac4a1ca5d8..3e04f8e43f3532a2639c11d36f9f9f1fe85f5b4e 100644 (file)
@@ -31,8 +31,6 @@
 
 #ifdef WITH_AUDIT
 #include <libaudit.h>
-#define _GNU_SOURCE
-#include <stdio.h>
 #endif
 
 static char ** build_env(char **cronenv);