summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/select.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-12-14 10:06:18 +0100
committerCorinna Vinschen <corinna@vinschen.de>2015-12-14 15:39:44 +0100
commit01885f533de81ff73e9da1519a4b5f2316b49f86 (patch)
tree940b95075ddd4b7411b7ca877883f37ae97080da /newlib/libc/include/sys/select.h
parentc39ad27d9e76636527c37d030d7f7d651744a8f3 (diff)
downloadcygnal-01885f533de81ff73e9da1519a4b5f2316b49f86.tar.gz
cygnal-01885f533de81ff73e9da1519a4b5f2316b49f86.tar.bz2
cygnal-01885f533de81ff73e9da1519a4b5f2316b49f86.zip
FreeBSD compatibility for <sys/select.h>
* libc/include/sys/_sigset.h: New. * libc/include/sys/select.h: Do not include <sys/types.h> and <sys/time.h> 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 <sys/select.h> if __BSD_VISIBLE. * libc/include/sys/types.h: Likewise.
Diffstat (limited to 'newlib/libc/include/sys/select.h')
-rw-r--r--newlib/libc/include/sys/select.h15
1 files changed, 7 insertions, 8 deletions
diff --git a/newlib/libc/include/sys/select.h b/newlib/libc/include/sys/select.h
index ffe890049..de779e61a 100644
--- a/newlib/libc/include/sys/select.h
+++ b/newlib/libc/include/sys/select.h
@@ -23,15 +23,14 @@ details. */
#include <sys/cdefs.h>
-/* Get fd_set, and macros like FD_SET */
-#include <sys/types.h>
+#include <sys/_sigset.h>
+#include <sys/_timeval.h>
+#include <sys/timespec.h>
-/* Get definition of timeval. */
-#include <sys/time.h>
-#include <time.h>
-
-/* Get definition of sigset_t. */
-#include <signal.h>
+#if !defined(_SIGSET_T_DECLARED)
+#define _SIGSET_T_DECLARED
+typedef __sigset_t sigset_t;
+#endif
# define _SYS_TYPES_FD_SET
/*