From: Bruno Haible Date: Fri, 24 Dec 2010 15:27:04 +0000 (+0100) Subject: sys_select: Ensure all necessary types on NonStop Kernel. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=edb19e7ea4f5977fc53c8e9ec81caed2c0a78348;p=pspp 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 --git a/ChangeLog b/ChangeLog index edab313c04..ed375b6a49 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 --git a/doc/posix-headers/sys_select.texi b/doc/posix-headers/sys_select.texi index 5e2622eea2..db1b96988d 100644 --- a/doc/posix-headers/sys_select.texi +++ b/doc/posix-headers/sys_select.texi @@ -9,7 +9,7 @@ Portability problems fixed by Gnulib: @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 --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, 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 . */