[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: <sys/select.h> HP-NonStop
From: |
Joachim Schmitz |
Subject: |
RE: <sys/select.h> HP-NonStop |
Date: |
Sat, 25 Dec 2010 12:18:22 +0100 |
Yes, it does mean that, thanks.
-----Original Message-----
From: Bruno Haible [mailto:address@hidden
Sent: Friday, December 24, 2010 4:28 PM
To: Joachim Schmitz
Cc: address@hidden
Subject: Re: <sys/select.h> HP-NonStop
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>. */
- Re: gethostname on HP-NonStop, (continued)
- Re: HOST_NAME_MAX on HP-NonStop, Bruno Haible, 2010/12/23
- RE: HOST_NAME_MAX on HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: HOST_NAME_MAX on HP-NonStop, Bruno Haible, 2010/12/24
- RE: HOST_NAME_MAX on HP-NonStop, Joachim Schmitz, 2010/12/25
- Re: HOST_NAME_MAX on HP-NonStop, Bruno Haible, 2010/12/25
- Re: porting stdioext to HP-NonStop, Bruno Haible, 2010/12/23
- RE: porting stdioext to HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: <sys/select.h> HP-NonStop, Bruno Haible, 2010/12/24
- RE: <sys/select.h> HP-NonStop,
Joachim Schmitz <=
- Re: printf.o HP-NonStop, Bruno Haible, 2010/12/23
- RE: printf.o HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: printf.o HP-NonStop, Bruno Haible, 2010/12/24
- Re: printf.o HP-NonStop, Bruno Haible, 2010/12/25
- Re: socket functions on HP-NonStop, Bruno Haible, 2010/12/23
- RE: socket functions on HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: socket functions on HP-NonStop, Bruno Haible, 2010/12/24
- RE: socket functions on HP-NonStop, Joachim Schmitz, 2010/12/25
- Re: socket functions on HP-NonStop, Bruno Haible, 2010/12/26
- RE: socket functions on HP-NonStop, Joachim Schmitz, 2010/12/27