repo.or.cz
/
vde.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
- fixed poll emulation management
[vde.git]
/
vde-2
/
compat
/
poll.h
blob
a139462b68f73a62547129fea01d57e61c0165b5
1
#include
"config.h"
2
3
#ifdef HAVE_POLL
4
#include <poll.h>
5
#else
6
#ifndef __POLL_H__
7
#define __POLL_H__
8
9
typedef
unsigned long int
nfds_t
;
10
11
#define POLLIN 0x001
12
#define POLLPRI 0x002
13
#define POLLOUT 0x004
14
15
struct
pollfd
16
{
17
int
fd
;
18
short int
events
;
19
short int
revents
;
20
};
21
22
int
rpl_poll
(
struct
pollfd
*
ufds
,
nfds_t nfds
,
int
timeout
);
23
24
#endif
25
#endif