summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2015-05-02 15:07:44 +0200
committerCorinna Vinschen <corinna@vinschen.de>2015-05-02 15:09:03 +0200
commita7a784c77460f86d9060140b44e7ffbcee36fbab (patch)
tree67540fa9ce09e910f7cdf848282a8133aec129e5 /newlib/libc/include/sys
parentd4058c6686fe4b59988d7b642627308b4622d90d (diff)
downloadcygnal-a7a784c77460f86d9060140b44e7ffbcee36fbab.tar.gz
cygnal-a7a784c77460f86d9060140b44e7ffbcee36fbab.tar.bz2
cygnal-a7a784c77460f86d9060140b44e7ffbcee36fbab.zip
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>
Diffstat (limited to 'newlib/libc/include/sys')
-rw-r--r--newlib/libc/include/sys/time.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h
index ce8cad662..e95240e60 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 */