From a7a784c77460f86d9060140b44e7ffbcee36fbab Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Sat, 2 May 2015 15:07:44 +0200 Subject: 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/libc/include/sys/time.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'newlib/libc/include/sys') 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 */ -- cgit v1.2.3