windows: target Windows 7 and add support for more than 64 CPUs
[fio.git] / os / windows / posix / include / poll.h
index 21e5699b3d685fc627319df4530cdcc1793a0501..25b8183fdfe45accb9d86b14c55e41afd27b8459 100644 (file)
@@ -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 */