windows: target Windows 7 and add support for more than 64 CPUs
[fio.git] / os / windows / posix / include / poll.h
CommitLineData
35922a21
BC
1#ifndef POLL_H
2#define POLL_H
3
a6ab5391
SW
4#include <winsock2.h>
5
8393ca93
SW
6typedef int nfds_t;
7
a6ab5391 8#ifdef CONFIG_WINDOWS_XP
8393ca93
SW
9struct pollfd
10{
11 int fd;
12 short events;
13 short revents;
14};
15
dac7244b
SW
16#define POLLOUT 1
17#define POLLIN 2
18#define POLLERR 0
19#define POLLHUP 1
a6ab5391
SW
20#endif /* CONFIG_WINDOWS_XP */
21
22int poll(struct pollfd fds[], nfds_t nfds, int timeout);
dac7244b 23
35922a21 24#endif /* POLL_H */