From e738fc4f99d824d0ae36fa988086a241dfe68460 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 2 May 2015 15:07:44 +0200 Subject: [PATCH] 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 --- newlib/ChangeLog | 4 ++++ newlib/libc/include/sys/time.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 2e8706367..e40d26bdf 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,7 @@ +2015-05-02 Corinna Vinschen + + * libc/include/sys/time.h: Include sys/select.h on Cygwin. Explain why. + 2015-04-29 Corinna Vinschen * 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 ce8cad662..e95240e60 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -42,6 +42,12 @@ #include #include +/* 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 +#endif /* __CYGWIN__ */ + struct timezone { int tz_minuteswest; /* minutes west of Greenwich */ int tz_dsttime; /* type of dst correction */ -- 2.43.5