summaryrefslogtreecommitdiff
path: root/os/windows/posix
diff options
context:
space:
mode:
Diffstat (limited to 'os/windows/posix')
-rw-r--r--os/windows/posix/include/poll.h11
-rw-r--r--os/windows/posix/include/sys/poll.h15
2 files changed, 11 insertions, 15 deletions
diff --git a/os/windows/posix/include/poll.h b/os/windows/posix/include/poll.h
index 058e23ad..f064e2ba 100644
--- a/os/windows/posix/include/poll.h
+++ b/os/windows/posix/include/poll.h
@@ -1,4 +1,15 @@
#ifndef POLL_H
#define POLL_H
+typedef int nfds_t;
+
+struct pollfd
+{
+ int fd;
+ short events;
+ short revents;
+};
+
+int poll(struct pollfd fds[], nfds_t nfds, int timeout);
+
#endif /* POLL_H */
diff --git a/os/windows/posix/include/sys/poll.h b/os/windows/posix/include/sys/poll.h
deleted file mode 100644
index f009d6e4..00000000
--- a/os/windows/posix/include/sys/poll.h
+++ /dev/null
@@ -1,15 +0,0 @@
-#ifndef SYS_POLL_H
-#define SYS_POLL_H
-
-typedef int nfds_t;
-
-struct pollfd
-{
- int fd;
- short events;
- short revents;
-};
-
-int poll(struct pollfd fds[], nfds_t nfds, int timeout);
-
-#endif /* SYS_POLL_H */