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 'sys/featuretest.ph';
    require 'machine/ansi.ph';
    require 'sys/null.ph';
    if(defined(&_BSD_CLOCK_T_)) {
	undef(&_BSD_CLOCK_T_) if defined(&_BSD_CLOCK_T_);
    }
    if(defined(&_BSD_TIME_T_)) {
	undef(&_BSD_TIME_T_) if defined(&_BSD_TIME_T_);
    }
    if(defined(&_BSD_SIZE_T_)) {
	undef(&_BSD_SIZE_T_) if defined(&_BSD_SIZE_T_);
    }
    if(defined(&_BSD_CLOCKID_T_)) {
	undef(&_BSD_CLOCKID_T_) if defined(&_BSD_CLOCKID_T_);
    }
    if(defined(&_BSD_TIMER_T_)) {
	undef(&_BSD_TIMER_T_) if defined(&_BSD_TIMER_T_);
    }
    eval 'sub CLOCKS_PER_SEC () {100;}' unless defined(&CLOCKS_PER_SEC);
    unless(defined(&__LIBC12_SOURCE__)) {
    }
    if(defined(&_POSIX_C_SOURCE) || defined(&_XOPEN_SOURCE) || defined(&_NETBSD_SOURCE)) {
	unless(defined(&__LIBC12_SOURCE__)) {
	    eval 'sub CLK_TCK () {( &__sysconf(39));}' unless defined(&CLK_TCK);
	}
    }
    unless(defined(&__LIBC12_SOURCE__)) {
    }
    if(defined(&_XOPEN_SOURCE) || defined(&_NETBSD_SOURCE)) {
	unless(defined(&__LIBC12_SOURCE__)) {
	}
    }
    if((defined(&_XOPEN_SOURCE)  && defined(&_XOPEN_SOURCE_EXTENDED)) || defined(&_NETBSD_SOURCE)) {
    }
    require 'sys/timespec.ph';
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 199309 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_NETBSD_SOURCE)) {
	require 'sys/time.ph';
	unless(defined(&__LIBC12_SOURCE__)) {
	}
	if(defined(&_NETBSD_SOURCE)) {
	    require 'sys/idtype.ph';
	}
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 199506 || ((defined(&_XOPEN_SOURCE) ? &_XOPEN_SOURCE : undef) - 0) >= 500|| defined(&_REENTRANT) || defined(&_NETBSD_SOURCE)) {
	unless(defined(&__LIBC12_SOURCE__)) {
	}
    }
    if(((defined(&_POSIX_C_SOURCE) ? &_POSIX_C_SOURCE : undef) - 0) >= 200809 || defined(&_NETBSD_SOURCE)) {
	unless(defined(&__LOCALE_T_DECLARED)) {
	    eval 'sub __LOCALE_T_DECLARED () {1;}' unless defined(&__LOCALE_T_DECLARED);
	}
    }
    if(defined(&_NETBSD_SOURCE)) {
	unless(defined(&__LIBC12_SOURCE__)) {
	}
    }
    eval 'sub TIME_UTC () {1;}' unless defined(&TIME_UTC);
}
1;
