From edb19e7ea4f5977fc53c8e9ec81caed2c0a78348 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 24 Dec 2010 16:27:04 +0100 Subject: [PATCH] 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 . --- ChangeLog | 9 +++++++++ doc/posix-headers/sys_select.texi | 2 +- lib/sys_select.in.h | 5 +++++ 3 files changed, 15 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index edab313c0..ed375b6a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,14 @@ 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. * lib/sys_select.in.h: Don't include on platforms that have . diff --git a/doc/posix-headers/sys_select.texi b/doc/posix-headers/sys_select.texi index 5e2622eea..db1b96988 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 baaf51057..77472bf5f 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 . */ -- 2.11.0