summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2010-12-24 16:27:04 +0100
committerBruno Haible <bruno@clisp.org>2010-12-24 16:27:04 +0100
commitedb19e7ea4f5977fc53c8e9ec81caed2c0a78348 (patch)
tree063e78a6751c2e3de3e15ed77f08a7034e040408 /lib
parent70c8ea91010550564ae598329ab51cb2b9849011 (diff)
downloadgnulib-edb19e7ea4f5977fc53c8e9ec81caed2c0a78348.tar.gz
sys_select: Ensure all necessary types on NonStop Kernel.
* lib/sys_select.in.h: If the system does not have <sys/select.h>, include <sys/time.h>. * doc/posix-headers/sys_select.texi: Mention that it's missing on NonStop Kernel. Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
Diffstat (limited to 'lib')
-rw-r--r--lib/sys_select.in.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h
index baaf510577..77472bf5fd 100644
--- a/lib/sys_select.in.h
+++ b/lib/sys_select.in.h
@@ -44,6 +44,8 @@
/* On OSF/1 4.0, <sys/select.h> provides only a forward declaration
of 'struct timeval', and no definition of this type.
+ Also, MacOS X, AIX, HP-UX, IRIX, Solaris, Interix declare select()
+ in <sys/time.h>.
But avoid namespace pollution on glibc systems. */
# ifndef __GLIBC__
# include <sys/time.h>
@@ -67,6 +69,9 @@
#if !@HAVE_SYS_SELECT_H@
/* A platform that lacks <sys/select.h>. */
+/* Get the 'struct timeval' and 'fd_set' types and the FD_* macros
+ on most platforms. */
+# include <sys/time.h>
/* On native Windows platforms:
Get the 'fd_set' type. Also, gnulib's <sys/socket.h> redefines select
so as to hide the declaration from <winsock2.h>. */