require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_TIME_H_)) {
    eval 'sub _TIME_H_ () {1;}' unless defined(&_TIME_H_);
    require 'sys/cdefs.ph';
    require 'machine/_types.ph';
    unless(defined(&NULL)) {
	if(defined(&__GNUG__)) {
	    eval 'sub NULL () { &__null;}' unless defined(&NULL);
	}
 elsif(defined(&__cplusplus)) {
	    eval 'sub NULL () {0;}' unless defined(&NULL);
	} else {
	    eval 'sub NULL () {(( &void *)0);}' unless defined(&NULL);
	}
    }
    unless(defined(&_CLOCK_T_DEFINED_)) {
	eval 'sub _CLOCK_T_DEFINED_ () {1;}' unless defined(&_CLOCK_T_DEFINED_);
    }
    unless(defined(&_TIME_T_DEFINED_)) {
	eval 'sub _TIME_T_DEFINED_ () {1;}' unless defined(&_TIME_T_DEFINED_);
    }
    unless(defined(&_SIZE_T_DEFINED_)) {
	eval 'sub _SIZE_T_DEFINED_ () {1;}' unless defined(&_SIZE_T_DEFINED_);
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : undef) > 0 && (defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : undef) < 200112|| (defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : undef)) {
	eval 'sub CLK_TCK () {100;}' unless defined(&CLK_TCK);
    }
    eval 'sub CLOCKS_PER_SEC () {100;}' unless defined(&CLOCKS_PER_SEC);
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : undef) >= 199309) {
	unless(defined(&_TIMESPEC_DECLARED)) {
	    eval 'sub _TIMESPEC_DECLARED () {1;}' unless defined(&_TIMESPEC_DECLARED);
	}
	require 'sys/_time.ph';
	unless(defined(&_CLOCKID_T_DEFINED_)) {
	    eval 'sub _CLOCKID_T_DEFINED_ () {1;}' unless defined(&_CLOCKID_T_DEFINED_);
	}
	unless(defined(&_TIMER_T_DEFINED_)) {
	    eval 'sub _TIMER_T_DEFINED_ () {1;}' unless defined(&_TIMER_T_DEFINED_);
	}
    }
    if((defined(&__XPG_VISIBLE) ? &__XPG_VISIBLE : undef) >= 400) {
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : undef) >= 199506) {
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : undef)) {
    }
    if((defined(&__POSIX_VISIBLE) ? &__POSIX_VISIBLE : undef) >= 199309) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : undef)) {
    }
}
1;
