- fixed poll emulation management
[vde.git] / vde-2 / compat / poll.h
bloba139462b68f73a62547129fea01d57e61c0165b5
1 #include "config.h"
3 #ifdef HAVE_POLL
4 #include <poll.h>
5 #else
6 #ifndef __POLL_H__
7 #define __POLL_H__
9 typedef unsigned long int nfds_t;
11 #define POLLIN 0x001
12 #define POLLPRI 0x002
13 #define POLLOUT 0x004
15 struct pollfd
17 int fd;
18 short int events;
19 short int revents;
22 int rpl_poll(struct pollfd *ufds, nfds_t nfds, int timeout);
24 #endif
25 #endif