From 01885f533de81ff73e9da1519a4b5f2316b49f86 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 14 Dec 2015 10:06:18 +0100 Subject: FreeBSD compatibility for * libc/include/sys/_sigset.h: New. * libc/include/sys/select.h: Do not include and to avoid cyclic header file dependencies. Include specialized header files instead. (sigset_t): Conditionally define. * libc/include/sys/signal.h (sigset_t): Likewise. * libc/include/sys/time.h: Include if __BSD_VISIBLE. * libc/include/sys/types.h: Likewise. --- newlib/libc/include/sys/time.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'newlib/libc/include/sys/time.h') diff --git a/newlib/libc/include/sys/time.h b/newlib/libc/include/sys/time.h index 7e7205bd8..521be68db 100644 --- a/newlib/libc/include/sys/time.h +++ b/newlib/libc/include/sys/time.h @@ -43,11 +43,9 @@ #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__ +#if __BSD_VISIBLE #include -#endif /* __CYGWIN__ */ +#endif struct timezone { int tz_minuteswest; /* minutes west of Greenwich */ -- cgit v1.2.3