summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-04-20 01:16:04 +0000
committerJames Peach <jpeach@samba.org>2006-04-20 01:16:04 +0000
commitb8a155e62c203c32c080de771309fdf3011bb809 (patch)
tree7227ad397a1fc784a05df1652d4d0323ff938da6 /source
parentf8efb200d4f16eaa2748c0ea34af65626d2338e0 (diff)
downloadsamba-b8a155e62c203c32c080de771309fdf3011bb809.tar.gz
samba-b8a155e62c203c32c080de771309fdf3011bb809.tar.xz
samba-b8a155e62c203c32c080de771309fdf3011bb809.zip
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.
Diffstat (limited to 'source')
-rw-r--r--source/build/m4/env.m42
-rw-r--r--source/lib/tdb/config.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/source/build/m4/env.m4 b/source/build/m4/env.m4
index 871257c0480..062824869c1 100644
--- a/source/build/m4/env.m4
+++ b/source/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/source/lib/tdb/config.m4 b/source/lib/tdb/config.m4
index 0a475989b16..73e74ddd0c4 100644
--- a/source/lib/tdb/config.m4
+++ b/source/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 <unistd.h>])
AC_HAVE_DECL(pwrite, [#include <unistd.h>])