comparison lib/sys_select.in.h @ 14011:68009ff4e161

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 <jojo@schmitz-digital.de>.
author Bruno Haible <bruno@clisp.org>
date Fri, 24 Dec 2010 16:27:04 +0100
parents fd62a5de1a49
children a9b8cdb01be3
comparison
equal deleted inserted replaced
14010:fd62a5de1a49 14011:68009ff4e161
42 <sys/types.h>. */ 42 <sys/types.h>. */
43 # include <sys/types.h> 43 # include <sys/types.h>
44 44
45 /* On OSF/1 4.0, <sys/select.h> provides only a forward declaration 45 /* On OSF/1 4.0, <sys/select.h> provides only a forward declaration
46 of 'struct timeval', and no definition of this type. 46 of 'struct timeval', and no definition of this type.
47 Also, MacOS X, AIX, HP-UX, IRIX, Solaris, Interix declare select()
48 in <sys/time.h>.
47 But avoid namespace pollution on glibc systems. */ 49 But avoid namespace pollution on glibc systems. */
48 # ifndef __GLIBC__ 50 # ifndef __GLIBC__
49 # include <sys/time.h> 51 # include <sys/time.h>
50 # endif 52 # endif
51 53
65 #ifndef _GL_SYS_SELECT_H 67 #ifndef _GL_SYS_SELECT_H
66 #define _GL_SYS_SELECT_H 68 #define _GL_SYS_SELECT_H
67 69
68 #if !@HAVE_SYS_SELECT_H@ 70 #if !@HAVE_SYS_SELECT_H@
69 /* A platform that lacks <sys/select.h>. */ 71 /* A platform that lacks <sys/select.h>. */
72 /* Get the 'struct timeval' and 'fd_set' types and the FD_* macros
73 on most platforms. */
74 # include <sys/time.h>
70 /* On native Windows platforms: 75 /* On native Windows platforms:
71 Get the 'fd_set' type. Also, gnulib's <sys/socket.h> redefines select 76 Get the 'fd_set' type. Also, gnulib's <sys/socket.h> redefines select
72 so as to hide the declaration from <winsock2.h>. */ 77 so as to hide the declaration from <winsock2.h>. */
73 # include <sys/socket.h> 78 # include <sys/socket.h>
74 #endif 79 #endif