From 7b8e8daa530e038e4d069080d54960e0e3efe4dd Mon Sep 17 00:00:00 2001 From: James Peach Date: Thu, 20 Apr 2006 01:16:04 +0000 Subject: r15143: Pull in GNU extensions right at the start of the configure process. This prevents a warning on comparison_fn_t redefinition every time replace.h is included. (This used to be commit 9140a2d266a59c24c1bc101d4cdd7da3cb141106) --- source4/build/m4/env.m4 | 2 ++ source4/lib/tdb/config.m4 | 2 -- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source4/build/m4/env.m4 b/source4/build/m4/env.m4 index 871257c048..062824869c 100644 --- a/source4/build/m4/env.m4 +++ b/source4/build/m4/env.m4 @@ -29,6 +29,8 @@ if test -n "${SAMBA_VERSION_SVN_REVISION}";then echo "BUILD REVISION: ${SAMBA_VERSION_SVN_REVISION}" fi +AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions]) + sinclude(build/m4/check_path.m4) sinclude(build/m4/check_perl.m4) sinclude(build/m4/check_cc.m4) diff --git a/source4/lib/tdb/config.m4 b/source4/lib/tdb/config.m4 index 0a475989b1..73e74ddd0c 100644 --- a/source4/lib/tdb/config.m4 +++ b/source4/lib/tdb/config.m4 @@ -1,8 +1,6 @@ AC_CHECK_FUNCS(mmap pread pwrite getpagesize utime) AC_CHECK_HEADERS(getopt.h sys/select.h sys/time.h) -AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions]) - AC_HAVE_DECL(pread, [#include ]) AC_HAVE_DECL(pwrite, [#include ]) -- cgit