require '_h2ph_pre.ph';

unless(defined(&_SYS_POLL_H)) {
    die("Never use <bits/poll.h> directly; include <sys/poll.h> instead.");
}
unless(defined(&POLLIN)) {
    sub POLLIN () {	0x1;}
}
unless(defined(&POLLPRI)) {
    sub POLLPRI () {	0x2;}
}
unless(defined(&POLLOUT)) {
    sub POLLOUT () {	0x4;}
}
if(defined(&__USE_XOPEN)) {
    eval 'sub POLLRDNORM () {0x40;}' unless defined(&POLLRDNORM);
    eval 'sub POLLRDBAND () {0x80;}' unless defined(&POLLRDBAND);
    eval 'sub POLLWRNORM () {0x100;}' unless defined(&POLLWRNORM);
    eval 'sub POLLWRBAND () {0x200;}' unless defined(&POLLWRBAND);
}
if(defined(&__USE_GNU)) {
    eval 'sub POLLMSG () {0x400;}' unless defined(&POLLMSG);
}
unless(defined(&POLLERR)) {
    sub POLLERR () {	0x8;}
}
unless(defined(&POLLHUP)) {
    sub POLLHUP () {	0x10;}
}
unless(defined(&POLLNVAL)) {
    sub POLLNVAL () {	0x20;}
}
1;
