Several BugFixes (see bug-reports from "accounts")
[vde.git] / vde-2 / include / vdepoll.h
blob83f2ff7230eeaa7a84318d22a317a7266162b1a9
1 #ifndef VDEPOLL_H__
2 #define VDEPOLL_H__
4 #include <config.h>
6 #ifdef HAVE_POLL
7 #include <poll.h>
8 #else
10 typedef unsigned long int nfds_t;
12 #define POLLIN 0x001
13 #define POLLPRI 0x002
14 #define POLLOUT 0x004
15 #define POLLHUP 0x010
18 struct pollfd
20 int fd;
21 short int events;
22 short int revents;
25 int vde_poll(struct pollfd *ufds, nfds_t nfds, int timeout);
27 #endif
28 #endif