require '_h2ph_pre.ph';

unless(defined(&_SYS_EPOLL_H)) {
    eval 'sub _SYS_EPOLL_H () {1;}' unless defined(&_SYS_EPOLL_H);
    require 'sys/types.ph';
    eval("sub EPOLLIN () { 0x001; }") unless defined(&EPOLLIN);
    eval("sub EPOLLPRI () { 0x002; }") unless defined(&EPOLLPRI);
    eval("sub EPOLLOUT () { 0x004; }") unless defined(&EPOLLOUT);
    eval("sub EPOLLRDNORM () { 0x040; }") unless defined(&EPOLLRDNORM);
    eval("sub EPOLLRDBAND () { 0x080; }") unless defined(&EPOLLRDBAND);
    eval("sub EPOLLWRNORM () { 0x100; }") unless defined(&EPOLLWRNORM);
    eval("sub EPOLLWRBAND () { 0x200; }") unless defined(&EPOLLWRBAND);
    eval("sub EPOLLMSG () { 0x400; }") unless defined(&EPOLLMSG);
    eval("sub EPOLLERR () { 0x008; }") unless defined(&EPOLLERR);
    eval("sub EPOLLHUP () { 0x010; }") unless defined(&EPOLLHUP);
    eval 'sub EPOLL_CTL_ADD () {1;}' unless defined(&EPOLL_CTL_ADD);
    eval 'sub EPOLL_CTL_DEL () {2;}' unless defined(&EPOLL_CTL_DEL);
    eval 'sub EPOLL_CTL_MOD () {3;}' unless defined(&EPOLL_CTL_MOD);
}
1;
