summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/config.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-09-25 00:13:25 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:38:53 -0500
commitea801d6520287fed76c3aa3a3d1a729f649baa16 (patch)
tree9253206a8fd7c391bcf56fb18b9877ce37f99d04 /source4/lib/tdb/config.m4
parent6e99b959dedcd8da444fca04832011ffa744b619 (diff)
downloadsamba-ea801d6520287fed76c3aa3a3d1a729f649baa16.tar.gz
samba-ea801d6520287fed76c3aa3a3d1a729f649baa16.tar.bz2
samba-ea801d6520287fed76c3aa3a3d1a729f649baa16.zip
r10484: try to fix the pread/pwrite declaration problems
(This used to be commit 196995ea38414ce5a57031c4cdf61b3ed548196a)
Diffstat (limited to 'source4/lib/tdb/config.m4')
-rw-r--r--source4/lib/tdb/config.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/lib/tdb/config.m4 b/source4/lib/tdb/config.m4
index 52daf7a8ea..58fdc02eb9 100644
--- a/source4/lib/tdb/config.m4
+++ b/source4/lib/tdb/config.m4
@@ -1,6 +1,8 @@
AC_CHECK_FUNCS(mmap pread pwrite getpagesize)
AC_CHECK_HEADERS(getopt.h)
+AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions])
+
AC_HAVE_DECL(pread, [#include <unistd.h>])
AC_HAVE_DECL(pwrite, [#include <unistd.h>])