4 * Copyright (c) 1997-8 Graham Barr <gbarr@pobox.com>. All rights reserved.
5 * This program is free software; you can redistribute it and/or
6 * modify it under the same terms as Perl itself.
13 #if (defined(HAS_POLL) && defined(I_POLL)) || defined(POLLWRBAND)
19 /* We shall emulate poll using select */
21 #define EMULATE_POLL_WITH_SELECT
23 typedef struct pollfd {
30 #define POLLPRI 0x0002
31 #define POLLOUT 0x0004
32 #define POLLRDNORM 0x0040
33 #define POLLWRNORM POLLOUT
34 #define POLLRDBAND 0x0080
35 #define POLLWRBAND 0x0100
36 #define POLLNORM POLLRDNORM
38 /* Return ONLY events (NON testable) */
40 #define POLLERR 0x0008
41 #define POLLHUP 0x0010
42 #define POLLNVAL 0x0020
44 int poll (struct pollfd *, unsigned long, int);
50 #endif /* HAS_SELECT */