r10493: we need sys/select.h to enable select() in the solaris workaround
authorAndrew Tridgell <tridge@samba.org>
Mon, 26 Sep 2005 01:28:49 +0000 (01:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:55 +0000 (13:38 -0500)
source/lib/tdb/common/tdb_private.h
source/lib/tdb/config.m4

index ce105a2a56ae7b9ba37b0d94fa7874f3a73d7f50..cd0505217c222b6f697cdce7579b37d34d049111 100644 (file)
@@ -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
index 58fdc02eb963ca2afc5aea64c46209684288c60a..e37662fe52f9ac67127852b2e332037ecaef9adb 100644 (file)
@@ -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])