require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_POLL_H_)) {
    eval 'sub _SYS_POLL_H_ () {1;}' unless defined(&_SYS_POLL_H_);
    eval 'sub POLLIN () {0x1;}' unless defined(&POLLIN);
    eval 'sub POLLPRI () {0x2;}' unless defined(&POLLPRI);
    eval 'sub POLLOUT () {0x4;}' unless defined(&POLLOUT);
    eval 'sub POLLERR () {0x8;}' unless defined(&POLLERR);
    eval 'sub POLLHUP () {0x10;}' unless defined(&POLLHUP);
    eval 'sub POLLNVAL () {0x20;}' unless defined(&POLLNVAL);
    eval 'sub POLLRDNORM () {0x40;}' unless defined(&POLLRDNORM);
    eval 'sub POLLNORM () { &POLLRDNORM;}' unless defined(&POLLNORM);
    eval 'sub POLLWRNORM () { &POLLOUT;}' unless defined(&POLLWRNORM);
    eval 'sub POLLRDBAND () {0x80;}' unless defined(&POLLRDBAND);
    eval 'sub POLLWRBAND () {0x100;}' unless defined(&POLLWRBAND);
    eval 'sub INFTIM () {(-1);}' unless defined(&INFTIM);
    unless(defined(&_KERNEL)) {
	require 'ctype.ph';
    }
}
1;
