summaryrefslogtreecommitdiff
path: root/os/windows/posix/include/poll.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/windows/posix/include/poll.h')
-rw-r--r--os/windows/posix/include/poll.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/os/windows/posix/include/poll.h b/os/windows/posix/include/poll.h
index 21e5699b..25b8183f 100644
--- a/os/windows/posix/include/poll.h
+++ b/os/windows/posix/include/poll.h
@@ -1,8 +1,11 @@
#ifndef POLL_H
#define POLL_H
+#include <winsock2.h>
+
typedef int nfds_t;
+#ifdef CONFIG_WINDOWS_XP
struct pollfd
{
int fd;
@@ -10,11 +13,12 @@ struct pollfd
short revents;
};
-int poll(struct pollfd fds[], nfds_t nfds, int timeout);
-
#define POLLOUT 1
#define POLLIN 2
#define POLLERR 0
#define POLLHUP 1
+#endif /* CONFIG_WINDOWS_XP */
+
+int poll(struct pollfd fds[], nfds_t nfds, int timeout);
#endif /* POLL_H */