public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin/cygwin-2.0] Revert to exposing sys/select.h from sys/time.h on Cygwin
@ 2015-05-02 13:09 Corinna Vinschen
  0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2015-05-02 13:09 UTC (permalink / raw)
  To: newlib-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=a7a784c77460f86d9060140b44e7ffbcee36fbab

commit a7a784c77460f86d9060140b44e7ffbcee36fbab
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Sat May 2 15:07:44 2015 +0200

    Revert to exposing sys/select.h from sys/time.h on Cygwin
    
    	* libc/include/sys/time.h: Include sys/select.h on Cygwin.  Explain why.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 newlib/ChangeLog               | 4 ++++
 newlib/libc/include/sys/time.h | 6 ++++++
 2 files changed, 10 insertions(+)

diff --git a/newlib/ChangeLog b/newlib/ChangeLog
index 2e87063..e40d26b 100644
--- a/newlib/ChangeLog
+++ b/newlib/ChangeLog
@@ -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
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h
index ce8cad6..e95240e 100644
--- a/newlib/libc/include/sys/time.h
+++ b/newlib/libc/include/sys/time.h
@@ -42,6 +42,12 @@
 #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 */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-05-02 13:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-02 13:09 [newlib-cygwin/cygwin-2.0] Revert to exposing sys/select.h from sys/time.h on Cygwin Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).