/*
* poll.h
*
* Copyright (c) 1997-8 Graham Barr <gbarr@pobox.com>. All rights reserved.
* modify it under the same terms as Perl itself.
*
*/
#ifndef POLL_H
# define POLL_H
# include <poll.h>
#else
#ifdef HAS_SELECT
/* We shall emulate poll using select */
#define EMULATE_POLL_WITH_SELECT
#ifdef poll
#endif
typedef struct pollfd {
int fd;
short events;
short revents;
} pollfd_t;
/* Return ONLY events (NON testable) */
#ifndef HAS_POLL
# define HAS_POLL
#endif
#endif /* HAS_SELECT */
#endif /* I_POLL */
#endif /* POLL_H */