about summary refs log tree commit diff
path: root/include/poll.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/poll.h')
-rw-r--r--include/poll.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/include/poll.h b/include/poll.h
index 75181925aa..f6a0630a18 100644
--- a/include/poll.h
+++ b/include/poll.h
@@ -1 +1,23 @@
-#include <include/sys/poll.h>
+#ifndef _POLL_H
+# include <io/poll.h>
+# ifndef _ISOMAC
+
+extern int __poll (struct pollfd *__fds, unsigned long int __nfds,
+		   int __timeout);
+libc_hidden_proto (__poll)
+libc_hidden_proto (ppoll)
+
+#  if __TIMESIZE == 64
+#   define __ppoll64 __ppoll
+#  else
+#   include <time.h>
+#   include <signal.h>
+
+extern int __ppoll64 (struct pollfd *fds, nfds_t nfds,
+                      const struct __timespec64 *timeout,
+                      const sigset_t *sigmask);
+libc_hidden_proto (__ppoll64)
+
+#  endif
+# endif
+#endif