diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-09-26 01:28:49 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:38:55 -0500 |
commit | 66ad3ab652c6a7c48b32327698e0f2f946f7a7df (patch) | |
tree | 3e62177140963d83eabcf12b12ab2e1ba1fc1353 /source4/lib/tdb | |
parent | be27946d84dbf9155d9505d00abe91089a9b8125 (diff) | |
download | samba-66ad3ab652c6a7c48b32327698e0f2f946f7a7df.tar.gz samba-66ad3ab652c6a7c48b32327698e0f2f946f7a7df.tar.bz2 samba-66ad3ab652c6a7c48b32327698e0f2f946f7a7df.zip |
r10493: we need sys/select.h to enable select() in the solaris workaround
(This used to be commit 144cc3da5eadf0dcb28ef722feeed813c033e08a)
Diffstat (limited to 'source4/lib/tdb')
-rw-r--r-- | source4/lib/tdb/common/tdb_private.h | 3 | ||||
-rw-r--r-- | source4/lib/tdb/config.m4 | 2 |
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]) |