windows: prepare for Windows build split
[fio.git] / os / windows / posix / include / poll.h
index 058e23adee645b42ec15e56616bf953d027aaf6d..21e5699b3d685fc627319df4530cdcc1793a0501 100644 (file)
@@ -1,4 +1,20 @@
 #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);
+
+#define POLLOUT        1
+#define POLLIN 2
+#define POLLERR        0
+#define POLLHUP        1
+
 #endif /* POLL_H */