require '_h2ph_pre.ph';

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);
    unless(defined(&NULL)) {
	if(defined(&__GNUG__)) {
	    eval 'sub NULL () { &__null;}' unless defined(&NULL);
	} else {
	    eval 'sub NULL () {0;}' unless defined(&NULL);
	}
    }
    unless(defined(&_POSIX_SOURCE)) {
	require 'sys/time.ph';
	unless(defined(&_XOPEN_SOURCE)) {
	}
    }
    if((!defined( &_POSIX_SOURCE)  && !defined( &_POSIX_C_SOURCE)  && !defined( &_XOPEN_SOURCE)) || (defined( &_XOPEN_SOURCE)  && (defined(&_XOPEN_SOURCE_EXTENDED) ? &_XOPEN_SOURCE_EXTENDED : 0) - 0== 1)) {
	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);
    }
}
1;
