]> Savannah Git Hosting - gnulib.git/commitdiff
sys_select: port to new Cygwin
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2016 07:49:17 +0000 (00:49 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 21 Mar 2016 07:49:45 +0000 (00:49 -0700)
Problem reported by Ken Brown in:
https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
* lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
diagnostics.

ChangeLog
lib/sys_select.in.h

index a2966d0c5fdd7cc9496d99e1e9fb84b8b020ef88..b1c35afd3d8d1b97e6c78a0c0ea583a1be4ae26d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       sys_select: port to new Cygwin
+       Problem reported by Ken Brown in:
+       https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00054.html
+       * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
+       diagnostics.
+
 2016-03-17  Jim Meyering  <meyering@fb.com>
 
        test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
index d6d3f9f1481fad832fcd38041326f4c7ea628511..7281144db444c72a66cc06030f4220c6000bd6a9 100644 (file)
@@ -81,8 +81,9 @@
    of 'struct timeval', and no definition of this type.
    Also, Mac OS X, AIX, HP-UX, IRIX, Solaris, Interix declare select()
    in <sys/time.h>.
-   But avoid namespace pollution on glibc systems.  */
-# ifndef __GLIBC__
+   But avoid namespace pollution on glibc systems and "unknown type
+   name" problems on Cygwin.  */
+# if !(defined __GLIBC__ || defined __CYGWIN__)
 #  include <sys/time.h>
 # endif
 
 #endif
 
 /* Get definition of 'sigset_t'.
-   But avoid namespace pollution on glibc systems.
+   But avoid namespace pollution on glibc systems and "unknown type
+   name" problems on Cygwin.
    Do this after the include_next (for the sake of OpenBSD 5.0) but before
    the split double-inclusion guard (for the sake of Solaris).  */
-#if !(defined __GLIBC__ && !defined __UCLIBC__)
+#if !((defined __GLIBC__ || defined __CYGWIN__) && !defined __UCLIBC__)
 # include <signal.h>
 #endif