X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fsys_select.in.h;h=1ea73f9dab40553e29ca3681d3f9c0c7c3ddc683;hb=721f56dcf49f8f004f609cc966f876922faad1a8;hp=4414dfeba95cdeb6a2d0144de8e35927a8a7aa86;hpb=8c4874e600742f95ad38fbd6f518a3005ac4283c;p=gnulib.git diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index 4414dfeba..1ea73f9da 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -1,5 +1,5 @@ /* Substitute for . - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2011 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -44,15 +44,17 @@ /* 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 # endif -/* On Solaris 10, provides an FD_ZERO implementation +/* On AIX 7 and Solaris 10, provides an FD_ZERO implementation that relies on memset(), but without including . But in any case avoid namespace pollution on glibc systems. */ -# if (defined __OpenBSD__ || defined __sun || defined __osf__ || defined __BEOS__) \ +# if (defined __OpenBSD__ || defined _AIX || defined __sun || defined __osf__ || defined __BEOS__) \ && ! defined __GLIBC__ # include # endif @@ -65,8 +67,19 @@ #ifndef _GL_SYS_SELECT_H #define _GL_SYS_SELECT_H -#if !@HAVE_SYS_SELECT_H@ || @REPLACE_SELECT@ +#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 HP-UX 11, provides an FD_ZERO implementation + that relies on memset(), but without including . */ +# if defined __hpux +# include +# endif +/* On native Windows platforms: + Get the 'fd_set' type. Also, gnulib's redefines select + so as to hide the declaration from . */ # include #endif