Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYaakov Selkowitz <yselkowi@redhat.com>2016-03-15 01:31:12 +0300
committerYaakov Selkowitz <yselkowi@redhat.com>2016-03-18 05:09:15 +0300
commit03c4ef1c518d8e14d83f684cab609faa35dd229e (patch)
treee2ca5df1e7c298b8c17b66f3f2d4dc3893cea319 /newlib/libc
parent73e2f464198ae5f01cb826b5d1204f50a60d94b1 (diff)
Feature test macros overhaul: sys/select.h
Remove !_POSIX_SOURCE conditional; pselect is POSIX.1-2001. Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc')
-rw-r--r--newlib/libc/include/sys/select.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/newlib/libc/include/sys/select.h b/newlib/libc/include/sys/select.h
index de779e61a..f5dc58688 100644
--- a/newlib/libc/include/sys/select.h
+++ b/newlib/libc/include/sys/select.h
@@ -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 */