bugfix:
[vde.git] / vde-2 / poll2select.h
blobe0aeca60022e1cedad6253ae9bc23c1f7bc96597
1 /*
2 * poll2select - convert poll() calls to select() calls
3 * Copyright 2005 Ludovico Gardenghi
4 * Licensed under the GPLv2
5 */
7 #ifndef POLL2SELECT_H_
8 #define POLL2SELECT_H_
10 /*
11 * poll.h already has these definitions, so we must not repeat them in case
12 * someone included that header
14 #ifndef _SYS_POLL_H_
16 #define POLLIN 0x0001
17 #define POLLPRI 0x0002
18 #define POLLOUT 0x0004
20 struct pollfd
22 int fd;
23 short events;
24 short revents;
27 typedef unsigned int nfds_t;
29 #endif
31 int poll2select(struct pollfd *, nfds_t, int);
33 #endif