require '_h2ph_pre.ph';

no warnings 'redefine';

require 'sys/cdefs.ph';
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;}
}
if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    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(&ETXTBSY)) {
    sub ETXTBSY () {	26;}
}
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(&EWOULDBLOCK)) {
    sub EWOULDBLOCK () {	 &EAGAIN;}
}
unless(defined(&EINPROGRESS)) {
    sub EINPROGRESS () {	36;}
}
unless(defined(&EALREADY)) {
    sub EALREADY () {	37;}
}
unless(defined(&ENOTSOCK)) {
    sub ENOTSOCK () {	38;}
}
unless(defined(&EDESTADDRREQ)) {
    sub EDESTADDRREQ () {	39;}
}
unless(defined(&EMSGSIZE)) {
    sub EMSGSIZE () {	40;}
}
unless(defined(&EPROTOTYPE)) {
    sub EPROTOTYPE () {	41;}
}
unless(defined(&ENOPROTOOPT)) {
    sub ENOPROTOOPT () {	42;}
}
unless(defined(&EPROTONOSUPPORT)) {
    sub EPROTONOSUPPORT () {	43;}
}
if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    eval 'sub ESOCKTNOSUPPORT () {44;}' unless defined(&ESOCKTNOSUPPORT);
}
unless(defined(&EOPNOTSUPP)) {
    sub EOPNOTSUPP () {	45;}
}
if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    eval 'sub EPFNOSUPPORT () {46;}' unless defined(&EPFNOSUPPORT);
}
unless(defined(&EAFNOSUPPORT)) {
    sub EAFNOSUPPORT () {	47;}
}
unless(defined(&EADDRINUSE)) {
    sub EADDRINUSE () {	48;}
}
unless(defined(&EADDRNOTAVAIL)) {
    sub EADDRNOTAVAIL () {	49;}
}
unless(defined(&ENETDOWN)) {
    sub ENETDOWN () {	50;}
}
unless(defined(&ENETUNREACH)) {
    sub ENETUNREACH () {	51;}
}
unless(defined(&ENETRESET)) {
    sub ENETRESET () {	52;}
}
unless(defined(&ECONNABORTED)) {
    sub ECONNABORTED () {	53;}
}
unless(defined(&ECONNRESET)) {
    sub ECONNRESET () {	54;}
}
unless(defined(&ENOBUFS)) {
    sub ENOBUFS () {	55;}
}
unless(defined(&EISCONN)) {
    sub EISCONN () {	56;}
}
unless(defined(&ENOTCONN)) {
    sub ENOTCONN () {	57;}
}
if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    eval 'sub ESHUTDOWN () {58;}' unless defined(&ESHUTDOWN);
    eval 'sub ETOOMANYREFS () {59;}' unless defined(&ETOOMANYREFS);
}
unless(defined(&ETIMEDOUT)) {
    sub ETIMEDOUT () {	60;}
}
unless(defined(&ECONNREFUSED)) {
    sub ECONNREFUSED () {	61;}
}
unless(defined(&ELOOP)) {
    sub ELOOP () {	62;}
}
unless(defined(&ENAMETOOLONG)) {
    sub ENAMETOOLONG () {	63;}
}
if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    eval 'sub EHOSTDOWN () {64;}' unless defined(&EHOSTDOWN);
    eval 'sub EHOSTUNREACH () {65;}' unless defined(&EHOSTUNREACH);
}
unless(defined(&ENOTEMPTY)) {
    sub ENOTEMPTY () {	66;}
}
if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    eval 'sub EPROCLIM () {67;}' unless defined(&EPROCLIM);
    eval 'sub EUSERS () {68;}' unless defined(&EUSERS);
}
unless(defined(&EDQUOT)) {
    sub EDQUOT () {	69;}
}
unless(defined(&ESTALE)) {
    sub ESTALE () {	70;}
}
if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    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;}
}
if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    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 ENOATTR () {83;}' unless defined(&ENOATTR);
    eval 'sub EILSEQ () {84;}' unless defined(&EILSEQ);
    eval 'sub ENOMEDIUM () {85;}' unless defined(&ENOMEDIUM);
    eval 'sub EMEDIUMTYPE () {86;}' unless defined(&EMEDIUMTYPE);
    eval 'sub ELAST () {86;}' unless defined(&ELAST);
}
if(defined(&_KERNEL)) {
    eval 'sub ERESTART () {-1;}' unless defined(&ERESTART);
    eval 'sub EJUSTRETURN () {-2;}' unless defined(&EJUSTRETURN);
}
1;
