summaryrefslogtreecommitdiff
path: root/source4/lib/tdb/config.m4
diff options
context:
space:
mode:
Diffstat (limited to 'source4/lib/tdb/config.m4')
-rw-r--r--source4/lib/tdb/config.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/lib/tdb/config.m4 b/source4/lib/tdb/config.m4
index 2ebd29993d..31c33552ea 100644
--- a/source4/lib/tdb/config.m4
+++ b/source4/lib/tdb/config.m4
@@ -1,6 +1,9 @@
AC_CHECK_FUNCS(mmap pread pwrite)
AC_CHECK_HEADERS(getopt.h)
+AC_HAVE_DECL(pread, [#include <unistd.h>])
+AC_HAVE_DECL(pwrite, [#include <unistd.h>])
+
if test x"$experimental" = x"yes"; then
SMB_LIBRARY_ENABLE(libtdb,YES)
fi