]> sourceware.org Git - newlib-cygwin.git/commitdiff
Feature test macros overhaul: sys/select.h
authorYaakov Selkowitz <yselkowi@redhat.com>
Mon, 14 Mar 2016 22:31:12 +0000 (17:31 -0500)
committerYaakov Selkowitz <yselkowi@redhat.com>
Fri, 18 Mar 2016 02:09:15 +0000 (21:09 -0500)
Remove !_POSIX_SOURCE conditional; pselect is POSIX.1-2001.

Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
newlib/libc/include/sys/select.h

index de779e61ac78803ad80cd6d76bf87a98fe855fce..f5dc58688bf1d82efc7c5f00f266e2a6117ed23e 100644 (file)
@@ -19,10 +19,9 @@ details. */
    includes the W32api winsock[2].h header must know what it is doing;
    it must not call the Cygwin select function.
 */
-# if !(defined (_POSIX_SOURCE) || defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS))
+# if !(defined (_WINSOCK_H) || defined (_WINSOCKAPI_) || defined (__USE_W32_SOCKETS))
 
 #include <sys/cdefs.h>
-
 #include <sys/_sigset.h>
 #include <sys/_timeval.h>
 #include <sys/timespec.h>
@@ -73,14 +72,16 @@ __BEGIN_DECLS
 
 int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
                 fd_set *__exceptfds, struct timeval *__timeout));
+#if __POSIX_VISIBLE >= 200112
 int pselect __P ((int __n, fd_set *__readfds, fd_set *__writefds,
                  fd_set *__exceptfds, const struct timespec *__timeout,
                  const sigset_t *__set));
+#endif
 
 __END_DECLS
 
-#endif
+#endif /* !__INSIDE_CYGWIN_NET__ */
 
-#endif /* !_POSIX_SOURCE, !__INSIDE_CYGWIN_NET__ */
+#endif /* !(_WINSOCK_H || _WINSOCKAPI_ || __USE_W32_SOCKETS) */
 
 #endif /* sys/select.h */
This page took 0.033145 seconds and 5 git commands to generate.