From 66ad3ab652c6a7c48b32327698e0f2f946f7a7df Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 26 Sep 2005 01:28:49 +0000 Subject: r10493: we need sys/select.h to enable select() in the solaris workaround (This used to be commit 144cc3da5eadf0dcb28ef722feeed813c033e08a) --- source4/lib/tdb/common/tdb_private.h | 3 +++ source4/lib/tdb/config.m4 | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/lib') 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 #include #include +#ifdef HAVE_SYS_SELECT_H +#include +#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]) -- cgit