# HG changeset patch # User jlarmour # Date 1073457913 0 # Node ID 3203d2eca45da2af8231cc225339e3dc532b2895 # Parent 483a79fde42830d4eac1d0a410c9d655cdd2cd32 * include/sys/select.h: Only declare pselect() when posix signals are included. diff --git a/packages/isoinfra/current/ChangeLog b/packages/isoinfra/current/ChangeLog --- a/packages/isoinfra/current/ChangeLog +++ b/packages/isoinfra/current/ChangeLog @@ -1,3 +1,8 @@ +2004-01-07 Jonathan Larmour + + * include/sys/select.h: Only declare pselect() when posix signals are + included. + 2003-07-15 Andrew Lunn * include/sys/stat.h (S_ISGID): Please, somebody teach me to count! diff --git a/packages/isoinfra/current/include/sys/select.h b/packages/isoinfra/current/include/sys/select.h --- a/packages/isoinfra/current/include/sys/select.h +++ b/packages/isoinfra/current/include/sys/select.h @@ -119,8 +119,6 @@ typedef struct fd_set { # ifndef CYGONCE_ISO_SYS_SELECT_H # define CYGONCE_ISO_SYS_SELECT_H -#include - # ifdef __cplusplus extern "C" { # endif @@ -131,11 +129,15 @@ select( int /* nfd */, fd_set * /* in */ fd_set * /* ex */, struct timeval * /* tv */ ); #ifdef CYGPKG_POSIX +# include +# ifdef CYGPKG_POSIX_SIGNALS +# include struct timespec; extern int pselect( int /* nfd */, fd_set * /* in */, fd_set * /* out */, fd_set * /* ex */, const struct timespec * /* ts */, const sigset_t * /* mask */); +# endif #endif # ifdef __cplusplus