summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/lib/tdb/common/tdb_private.h3
-rw-r--r--source4/lib/tdb/config.m42
2 files changed, 4 insertions, 1 deletions
diff --git a/source4/lib/tdb/common/tdb_private.h b/source4/lib/tdb/common/tdb_private.h
index ce105a2a56..cd0505217c 100644
--- a/source4/lib/tdb/common/tdb_private.h
+++ b/source4/lib/tdb/common/tdb_private.h
@@ -38,6 +38,9 @@
#include <errno.h>
#include <sys/mman.h>
#include <sys/stat.h>
+#ifdef HAVE_SYS_SELECT_H
+#include <sys/select.h>
+#endif
#include "tdb.h"
#ifndef HAVE_PREAD_DECL
diff --git a/source4/lib/tdb/config.m4 b/source4/lib/tdb/config.m4
index 58fdc02eb9..e37662fe52 100644
--- a/source4/lib/tdb/config.m4
+++ b/source4/lib/tdb/config.m4
@@ -1,5 +1,5 @@
AC_CHECK_FUNCS(mmap pread pwrite getpagesize)
-AC_CHECK_HEADERS(getopt.h)
+AC_CHECK_HEADERS(getopt.h sys/select.h)
AC_DEFINE([_GNU_SOURCE],[],[Pull in GNU extensions])