45 #include <ktorrent_export.h>
50 #define FD_SETSIZE 1000
64 #if (_WIN32_WINNT < 0x0600) // If VC++ 8.0 or older OR Windows older than Vista
75 #define POLLPRI 0x0002
76 #define POLLOUT 0x0004
77 #define POLLERR 0x0008
78 #define POLLHUP 0x0010
79 #define POLLNVAL 0x0020
119 KTORRENT_EXPORT
int mingw_poll(
struct pollfd *,
unsigned int,
int);
137 #define strerror(e) mingw_strerror(e)
139 KTORRENT_EXPORT
char *mingw_strerror(
int error);
158 #define pollfd _pollfd
167 typedef unsigned int nfds_t;
169 #define POLLIN (FD_READ | FD_ACCEPT | FD_CLOSE)
170 #define POLLPRI (FD_OOB)
171 #define POLLOUT (FD_WRITE | FD_CONNECT | FD_CLOSE)
172 #define POLLRDHUP (FD_CLOSE)
173 #define POLLHUP (FD_CLOSE)
174 #define POLLRDNORM (POLLIN)
175 #define POLLRDBAND (POLLIN | POLLPRI)
176 #define POLLWRNORM (POLLOUT)
177 #define POLLWRBAND (POLLOUT | POLLPRI)
180 KTORRENT_EXPORT
int poll(
struct pollfd *fds, nfds_t nfds,
int timeout);
182 #define mingw_poll(a, b, c) poll(a, b, c)