]> sourceware.org Git - newlib-cygwin.git/commitdiff
Revert to exposing sys/select.h from sys/time.h on Cygwin
authorCorinna Vinschen <corinna@vinschen.de>
Sat, 2 May 2015 13:07:44 +0000 (15:07 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Sat, 2 May 2015 13:09:03 +0000 (15:09 +0200)
* libc/include/sys/time.h: Include sys/select.h on Cygwin.  Explain why.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
newlib/ChangeLog
newlib/libc/include/sys/time.h

index 2e8706367500eb13f1efb52ce8c83cb09e37fb85..e40d26bdfc7a1b05584dbcc0ae72f83b16e2c7e7 100644 (file)
@@ -1,3 +1,7 @@
+2015-05-02  Corinna Vinschen  <vinschen@redhat.com>
+
+       * libc/include/sys/time.h: Include sys/select.h on Cygwin.  Explain why.
+
 2015-04-29  Corinna Vinschen  <vinschen@redhat.com>
 
        * libc/include/sys/config.h: Move evaluation of _UINTPTR_EQ_ULONG and
index ce8cad662223ed1fd812a5957f25b04867e9e1f3..e95240e6069e582dfb487133ec08cd531ea7a208 100644 (file)
 #include <sys/types.h>
 #include <sys/timespec.h>
 
+/* Cygwin exposes sys/select.h to users of sys/time.h for a couple of years
+   so we have to maintain that.  Note that this is in accordance with POSIX. */
+#ifdef __CYGWIN__
+#include <sys/select.h>
+#endif /* __CYGWIN__ */
+
 struct timezone {
        int     tz_minuteswest; /* minutes west of Greenwich */
        int     tz_dsttime;     /* type of dst correction */
This page took 0.052805 seconds and 5 git commands to generate.