bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <sys/select.h> HP-NonStop


From: Bruno Haible
Subject: Re: <sys/select.h> HP-NonStop
Date: Fri, 24 Dec 2010 16:27:40 +0100
User-agent: KMail/1.9.9

Joachim Schmitz wrote:
> Yes, but with a condition that apparently is not met (and to deeply
> nested and complicated for me to grasp), hence my change: 
> 
> diff -u ./gllib/sys_select.in.h.orig ./gllib/sys_select.in.h
> --- ./gllib/sys_select.in.h.orig        2010-10-10 16:05:05.000000000 -0500
> +++ ./gllib/sys_select.in.h     2010-12-23 03:38:34.000000000 -0600
> @@ -60,6 +60,8 @@
>  /* The include_next requires a split double-inclusion guard.  */
>  # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@
> 
> +#elif defined __TANDEM /* HP NonStop */
> +# include <sys/time.h>
>  #endif
> 
>  #ifndef _GL_SYS_SELECT_H
> 
> 
> Symptoms were error reg. timeval, fd_set, FD_ISSET not being available

If that change worked for you, it means in particular that your platform
does not have <sys/select.h>. This should fix it:


2010-12-24  Bruno Haible  <address@hidden>

        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 <address@hidden>.

--- doc/posix-headers/sys_select.texi.orig      Fri Dec 24 16:23:25 2010
+++ doc/posix-headers/sys_select.texi   Fri Dec 24 16:22:49 2010
@@ -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{<sys/types.h>} to be included first.
--- lib/sys_select.in.h.orig    Fri Dec 24 16:23:25 2010
+++ lib/sys_select.in.h Fri Dec 24 16:23:04 2010
@@ -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 address@hidden@
 /* 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>.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]