require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_UNISTD_H_)) {
    eval 'sub _SYS_UNISTD_H_ () {1;}' unless defined(&_SYS_UNISTD_H_);
    require 'sys/cdefs.ph';
    eval 'sub _POSIX_VDISABLE () {(0377);}' unless defined(&_POSIX_VDISABLE);
    eval 'sub _POSIX_VERSION () {199009;}' unless defined(&_POSIX_VERSION);
    eval 'sub F_OK () {0;}' unless defined(&F_OK);
    eval 'sub X_OK () {0x1;}' unless defined(&X_OK);
    eval 'sub W_OK () {0x2;}' unless defined(&W_OK);
    eval 'sub R_OK () {0x4;}' unless defined(&R_OK);
    eval 'sub SEEK_SET () {0;}' unless defined(&SEEK_SET);
    eval 'sub SEEK_CUR () {1;}' unless defined(&SEEK_CUR);
    eval 'sub SEEK_END () {2;}' unless defined(&SEEK_END);
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : undef)) {
	eval 'sub L_SET () { &SEEK_SET;}' unless defined(&L_SET);
	eval 'sub L_INCR () { &SEEK_CUR;}' unless defined(&L_INCR);
	eval 'sub L_XTND () { &SEEK_END;}' unless defined(&L_XTND);
    }
    eval 'sub _PC_LINK_MAX () {1;}' unless defined(&_PC_LINK_MAX);
    eval 'sub _PC_MAX_CANON () {2;}' unless defined(&_PC_MAX_CANON);
    eval 'sub _PC_MAX_INPUT () {3;}' unless defined(&_PC_MAX_INPUT);
    eval 'sub _PC_NAME_MAX () {4;}' unless defined(&_PC_NAME_MAX);
    eval 'sub _PC_PATH_MAX () {5;}' unless defined(&_PC_PATH_MAX);
    eval 'sub _PC_PIPE_BUF () {6;}' unless defined(&_PC_PIPE_BUF);
    eval 'sub _PC_CHOWN_RESTRICTED () {7;}' unless defined(&_PC_CHOWN_RESTRICTED);
    eval 'sub _PC_NO_TRUNC () {8;}' unless defined(&_PC_NO_TRUNC);
    eval 'sub _PC_VDISABLE () {9;}' unless defined(&_PC_VDISABLE);
    eval 'sub _PC_2_SYMLINKS () {10;}' unless defined(&_PC_2_SYMLINKS);
    eval 'sub _PC_ALLOC_SIZE_MIN () {11;}' unless defined(&_PC_ALLOC_SIZE_MIN);
    eval 'sub _PC_ASYNC_IO () {12;}' unless defined(&_PC_ASYNC_IO);
    eval 'sub _PC_FILESIZEBITS () {13;}' unless defined(&_PC_FILESIZEBITS);
    eval 'sub _PC_PRIO_IO () {14;}' unless defined(&_PC_PRIO_IO);
    eval 'sub _PC_REC_INCR_XFER_SIZE () {15;}' unless defined(&_PC_REC_INCR_XFER_SIZE);
    eval 'sub _PC_REC_MAX_XFER_SIZE () {16;}' unless defined(&_PC_REC_MAX_XFER_SIZE);
    eval 'sub _PC_REC_MIN_XFER_SIZE () {17;}' unless defined(&_PC_REC_MIN_XFER_SIZE);
    eval 'sub _PC_REC_XFER_ALIGN () {18;}' unless defined(&_PC_REC_XFER_ALIGN);
    eval 'sub _PC_SYMLINK_MAX () {19;}' unless defined(&_PC_SYMLINK_MAX);
    eval 'sub _PC_SYNC_IO () {20;}' unless defined(&_PC_SYNC_IO);
}
1;
