require '_h2ph_pre.ph';

unless(defined(&_KERNEL)) {
    if(!defined( &_ANSI_SOURCE)  && !defined( &_POSIX_SOURCE)  && !defined( &__SYS_ERRLIST)) {
	eval 'sub __SYS_ERRLIST () {1;}' unless defined(&__SYS_ERRLIST);
    }
}
unless(defined(&EPERM)) {
    sub EPERM () {	1;}
}
unless(defined(&ENOENT)) {
    sub ENOENT () {	2;}
}
unless(defined(&ESRCH)) {
    sub ESRCH () {	3;}
}
unless(defined(&EINTR)) {
    sub EINTR () {	4;}
}
unless(defined(&EIO)) {
    sub EIO () {	5;}
}
unless(defined(&ENXIO)) {
    sub ENXIO () {	6;}
}
unless(defined(&E2BIG)) {
    sub E2BIG () {	7;}
}
unless(defined(&ENOEXEC)) {
    sub ENOEXEC () {	8;}
}
unless(defined(&EBADF)) {
    sub EBADF () {	9;}
}
unless(defined(&ECHILD)) {
    sub ECHILD () {	10;}
}
unless(defined(&EDEADLK)) {
    sub EDEADLK () {	11;}
}
unless(defined(&ENOMEM)) {
    sub ENOMEM () {	12;}
}
unless(defined(&EACCES)) {
    sub EACCES () {	13;}
}
unless(defined(&EFAULT)) {
    sub EFAULT () {	14;}
}
unless(defined(&_POSIX_SOURCE)) {
    eval 'sub ENOTBLK () {15;}' unless defined(&ENOTBLK);
}
unless(defined(&EBUSY)) {
    sub EBUSY () {	16;}
}
unless(defined(&EEXIST)) {
    sub EEXIST () {	17;}
}
unless(defined(&EXDEV)) {
    sub EXDEV () {	18;}
}
unless(defined(&ENODEV)) {
    sub ENODEV () {	19;}
}
unless(defined(&ENOTDIR)) {
    sub ENOTDIR () {	20;}
}
unless(defined(&EISDIR)) {
    sub EISDIR () {	21;}
}
unless(defined(&EINVAL)) {
    sub EINVAL () {	22;}
}
unless(defined(&ENFILE)) {
    sub ENFILE () {	23;}
}
unless(defined(&EMFILE)) {
    sub EMFILE () {	24;}
}
unless(defined(&ENOTTY)) {
    sub ENOTTY () {	25;}
}
unless(defined(&_POSIX_SOURCE)) {
    eval 'sub ETXTBSY () {26;}' unless defined(&ETXTBSY);
}
unless(defined(&EFBIG)) {
    sub EFBIG () {	27;}
}
unless(defined(&ENOSPC)) {
    sub ENOSPC () {	28;}
}
unless(defined(&ESPIPE)) {
    sub ESPIPE () {	29;}
}
unless(defined(&EROFS)) {
    sub EROFS () {	30;}
}
unless(defined(&EMLINK)) {
    sub EMLINK () {	31;}
}
unless(defined(&EPIPE)) {
    sub EPIPE () {	32;}
}
unless(defined(&EDOM)) {
    sub EDOM () {	33;}
}
unless(defined(&ERANGE)) {
    sub ERANGE () {	34;}
}
unless(defined(&EAGAIN)) {
    sub EAGAIN () {	35;}
}
unless(defined(&_POSIX_SOURCE)) {
    eval 'sub EWOULDBLOCK () { &EAGAIN;}' unless defined(&EWOULDBLOCK);
    eval 'sub EINPROGRESS () {36;}' unless defined(&EINPROGRESS);
    eval 'sub EALREADY () {37;}' unless defined(&EALREADY);
    eval 'sub ENOTSOCK () {38;}' unless defined(&ENOTSOCK);
    eval 'sub EDESTADDRREQ () {39;}' unless defined(&EDESTADDRREQ);
    eval 'sub EMSGSIZE () {40;}' unless defined(&EMSGSIZE);
    eval 'sub EPROTOTYPE () {41;}' unless defined(&EPROTOTYPE);
    eval 'sub ENOPROTOOPT () {42;}' unless defined(&ENOPROTOOPT);
    eval 'sub EPROTONOSUPPORT () {43;}' unless defined(&EPROTONOSUPPORT);
    eval 'sub ESOCKTNOSUPPORT () {44;}' unless defined(&ESOCKTNOSUPPORT);
    eval 'sub EOPNOTSUPP () {45;}' unless defined(&EOPNOTSUPP);
    eval 'sub EPFNOSUPPORT () {46;}' unless defined(&EPFNOSUPPORT);
    eval 'sub EAFNOSUPPORT () {47;}' unless defined(&EAFNOSUPPORT);
    eval 'sub EADDRINUSE () {48;}' unless defined(&EADDRINUSE);
    eval 'sub EADDRNOTAVAIL () {49;}' unless defined(&EADDRNOTAVAIL);
    eval 'sub ENETDOWN () {50;}' unless defined(&ENETDOWN);
    eval 'sub ENETUNREACH () {51;}' unless defined(&ENETUNREACH);
    eval 'sub ENETRESET () {52;}' unless defined(&ENETRESET);
    eval 'sub ECONNABORTED () {53;}' unless defined(&ECONNABORTED);
    eval 'sub ECONNRESET () {54;}' unless defined(&ECONNRESET);
    eval 'sub ENOBUFS () {55;}' unless defined(&ENOBUFS);
    eval 'sub EISCONN () {56;}' unless defined(&EISCONN);
    eval 'sub ENOTCONN () {57;}' unless defined(&ENOTCONN);
    eval 'sub ESHUTDOWN () {58;}' unless defined(&ESHUTDOWN);
    eval 'sub ETOOMANYREFS () {59;}' unless defined(&ETOOMANYREFS);
    eval 'sub ETIMEDOUT () {60;}' unless defined(&ETIMEDOUT);
    eval 'sub ECONNREFUSED () {61;}' unless defined(&ECONNREFUSED);
    eval 'sub ELOOP () {62;}' unless defined(&ELOOP);
}
unless(defined(&ENAMETOOLONG)) {
    sub ENAMETOOLONG () {	63;}
}
unless(defined(&_POSIX_SOURCE)) {
    eval 'sub EHOSTDOWN () {64;}' unless defined(&EHOSTDOWN);
    eval 'sub EHOSTUNREACH () {65;}' unless defined(&EHOSTUNREACH);
}
unless(defined(&ENOTEMPTY)) {
    sub ENOTEMPTY () {	66;}
}
unless(defined(&_POSIX_SOURCE)) {
    eval 'sub EPROCLIM () {67;}' unless defined(&EPROCLIM);
    eval 'sub EUSERS () {68;}' unless defined(&EUSERS);
    eval 'sub EDQUOT () {69;}' unless defined(&EDQUOT);
    eval 'sub ESTALE () {70;}' unless defined(&ESTALE);
    eval 'sub EREMOTE () {71;}' unless defined(&EREMOTE);
    eval 'sub EBADRPC () {72;}' unless defined(&EBADRPC);
    eval 'sub ERPCMISMATCH () {73;}' unless defined(&ERPCMISMATCH);
    eval 'sub EPROGUNAVAIL () {74;}' unless defined(&EPROGUNAVAIL);
    eval 'sub EPROGMISMATCH () {75;}' unless defined(&EPROGMISMATCH);
    eval 'sub EPROCUNAVAIL () {76;}' unless defined(&EPROCUNAVAIL);
}
unless(defined(&ENOLCK)) {
    sub ENOLCK () {	77;}
}
unless(defined(&ENOSYS)) {
    sub ENOSYS () {	78;}
}
unless(defined(&_POSIX_SOURCE)) {
    eval 'sub EFTYPE () {79;}' unless defined(&EFTYPE);
    eval 'sub EAUTH () {80;}' unless defined(&EAUTH);
    eval 'sub ENEEDAUTH () {81;}' unless defined(&ENEEDAUTH);
    eval 'sub EIPSEC () {82;}' unless defined(&EIPSEC);
    eval 'sub ELAST () {82;}' unless defined(&ELAST);
}
if(defined(&_KERNEL)) {
    eval 'sub ERESTART () {-1;}' unless defined(&ERESTART);
    eval 'sub EJUSTRETURN () {-2;}' unless defined(&EJUSTRETURN);
}
1;
