r15143: Pull in GNU extensions right at the start of the configure process. This
authorJames Peach <jpeach@samba.org>
Thu, 20 Apr 2006 01:16:04 +0000 (01:16 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 19:04:11 +0000 (14:04 -0500)
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
source4/lib/tdb/config.m4

index 871257c04804d515759c642a6b05d6f173601438..062824869c1b6e009aa8258b34d890a8a1fe795e 100644 (file)
@@ -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)
index 0a475989b16844d318f0993dd561064d50069077..73e74ddd0c448a482c57470f719c6970bb53e7c8 100644 (file)
@@ -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 <unistd.h>])
 AC_HAVE_DECL(pwrite, [#include <unistd.h>])