require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_UNISTD_H_)) {
    eval 'sub _UNISTD_H_ () {1;}' unless defined(&_UNISTD_H_);
    require 'sys/cdefs.ph';
    require 'sys/types.ph';
    require 'sys/unistd.ph';
    eval 'sub STDIN_FILENO () {0;}' unless defined(&STDIN_FILENO);
    eval 'sub STDOUT_FILENO () {1;}' unless defined(&STDOUT_FILENO);
    eval 'sub STDERR_FILENO () {2;}' unless defined(&STDERR_FILENO);
    if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) || (defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 200112) {
	eval 'sub F_ULOCK () {0;}' unless defined(&F_ULOCK);
	eval 'sub F_LOCK () {1;}' unless defined(&F_LOCK);
	eval 'sub F_TLOCK () {2;}' unless defined(&F_TLOCK);
	eval 'sub F_TEST () {3;}' unless defined(&F_TEST);
    }
    unless(defined(&NULL)) {
	if(defined(&__GNUG__)) {
	    eval 'sub NULL () { &__null;}' unless defined(&NULL);
	} else {
	    eval 'sub NULL () {0;}' unless defined(&NULL);
	}
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 300) {
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 199209|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
	unless(defined(&_GETOPT_DEFINED_)) {
	    eval 'sub _GETOPT_DEFINED_ () {1;}' unless defined(&_GETOPT_DEFINED_);
	}
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 199506|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0)) {
    }
    if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) || (defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 420) {
    }
    if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 500) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0) || (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) <= 500) {
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 200112|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 420) {
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : 0) >= 200112|| (defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : 0) >= 420|| (defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	unless(defined(&_SELECT_DEFINED_)) {
	    eval 'sub _SELECT_DECLARED () {1;}' unless defined(&_SELECT_DECLARED);
	}
    }
}
1;
