On 03/19/2013 03:15 AM, marco atzeri wrote:

   http://matzeri.altervista.org/works/include/

for what I see <sys/time> includes <sys/types.h> but
none of the two include directly <sys/select.h>

I think I see an indirect inclusion.  Does the attached gnulib
patch fix things for you?  I'll CC: this to Tom Christensen, as
this is fallout from the Solaris 2.6 fixes in January and I'd
like the code to continue to work there too.

From bfd11c25219f5800465e67a01c580e4b9099d209 Mon Sep 17 00:00:00 2001
From: Paul Eggert <egg...@cs.ucla.edu>
Date: Tue, 19 Mar 2013 09:08:47 -0700
Subject: [PATCH] sys_select: Port 2013-01-30 Solaris 2.6 fix to Cygwin.

Problem reported by Marco Atzeri in
<http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
* lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
Simply delegate to the system <sys/select.h> in this case too.
---
 ChangeLog           | 8 ++++++++
 lib/sys_select.in.h | 5 ++++-
 2 files changed, 12 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 98d74d3..24e44c2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2013-03-19  Paul Eggert  <egg...@cs.ucla.edu>
+
+       sys_select: Port 2013-01-30 Solaris 2.6 fix to Cygwin.
+       Problem reported by Marco Atzeri in
+       <http://lists.gnu.org/archive/html/bug-gnulib/2013-03/msg00000.html>.
+       * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
+       Simply delegate to the system <sys/select.h> in this case too.
+
 2013-01-27  Jim Meyering  <j...@meyering.net>
 
        prefix-gnulib-mk: give better diagnostics
diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h
index 5a88d51..117442d 100644
--- a/lib/sys_select.in.h
+++ b/lib/sys_select.in.h
@@ -21,6 +21,7 @@
 
 /* On OSF/1 and Solaris 2.6, <sys/types.h> and <sys/time.h>
    both include <sys/select.h>.
+   On Cygwin, <sys/time.h> includes <sys/select.h>.
    Simply delegate to the system's header in this case.  */
 #if (@HAVE_SYS_SELECT_H@                                                \
      && ((defined __osf__ && defined _SYS_TYPES_H_ && defined _OSF_SOURCE) \
@@ -33,7 +34,9 @@
 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@
 
 #elif (@HAVE_SYS_SELECT_H@                                              \
-       && ((defined __osf__ && defined _SYS_TIME_H_ && defined _OSF_SOURCE) \
+       && (defined _CYGWIN_SYS_TIME_H                                   \
+           || (defined __osf__ && defined _SYS_TIME_H_                  \
+               && defined _OSF_SOURCE)                                  \
            || (defined __sun && defined _SYS_TIME_H                     \
                && (! (defined _XOPEN_SOURCE || defined _POSIX_C_SOURCE) \
                    || defined __EXTENSIONS__)))                         \
-- 
1.7.11.7

Reply via email to