# HG changeset patch # User Bruno Haible # Date 1293204424 -3600 # Node ID 68009ff4e161b77e9b86e2182e053b199ca18184 # Parent fd62a5de1a4935d4393fa670040c644ac8a31fd2 sys_select: Ensure all necessary types on NonStop Kernel. * lib/sys_select.in.h: If the system does not have , include . * doc/posix-headers/sys_select.texi: Mention that it's missing on NonStop Kernel. Reported by Joachim Schmitz . diff -r fd62a5de1a49 -r 68009ff4e161 ChangeLog --- a/ChangeLog Fri Dec 24 16:21:59 2010 +0100 +++ b/ChangeLog Fri Dec 24 16:27:04 2010 +0100 @@ -1,3 +1,12 @@ +2010-12-24 Bruno Haible + + sys_select: Ensure all necessary types on NonStop Kernel. + * lib/sys_select.in.h: If the system does not have , + include . + * doc/posix-headers/sys_select.texi: Mention that it's missing on + NonStop Kernel. + Reported by Joachim Schmitz . + 2010-12-24 Bruno Haible sys_select: Remove unneeded include. diff -r fd62a5de1a49 -r 68009ff4e161 doc/posix-headers/sys_select.texi --- a/doc/posix-headers/sys_select.texi Fri Dec 24 16:21:59 2010 +0100 +++ b/doc/posix-headers/sys_select.texi Fri Dec 24 16:27:04 2010 +0100 @@ -9,7 +9,7 @@ @itemize @item This header file is missing on some platforms: -HP-UX 11.11, mingw, BeOS. +HP-UX 11.11, NonStop Kernel, mingw, BeOS. @item This header file is not self-contained on some platforms: it requires @code{} to be included first. diff -r fd62a5de1a49 -r 68009ff4e161 lib/sys_select.in.h --- a/lib/sys_select.in.h Fri Dec 24 16:21:59 2010 +0100 +++ b/lib/sys_select.in.h Fri Dec 24 16:27:04 2010 +0100 @@ -44,6 +44,8 @@ /* On OSF/1 4.0, 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 . But avoid namespace pollution on glibc systems. */ # ifndef __GLIBC__ # include @@ -67,6 +69,9 @@ #if !@HAVE_SYS_SELECT_H@ /* A platform that lacks . */ +/* Get the 'struct timeval' and 'fd_set' types and the FD_* macros + on most platforms. */ +# include /* On native Windows platforms: Get the 'fd_set' type. Also, gnulib's redefines select so as to hide the declaration from . */