require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_SYS_TYPES_H_)) {
    eval 'sub _SYS_TYPES_H_ () {1;}' unless defined(&_SYS_TYPES_H_);
    require 'sys/cdefs.ph';
    require 'sys/_types.ph';
    require 'machine/endian.ph';
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    unless(defined(&__BIT_TYPES_DEFINED__)) {
	eval 'sub __BIT_TYPES_DEFINED__ () {1;}' unless defined(&__BIT_TYPES_DEFINED__);
    }
    unless(defined(&_INT8_T_DEFINED_)) {
	eval 'sub _INT8_T_DEFINED_ () {1;}' unless defined(&_INT8_T_DEFINED_);
    }
    unless(defined(&_UINT8_T_DEFINED_)) {
	eval 'sub _UINT8_T_DEFINED_ () {1;}' unless defined(&_UINT8_T_DEFINED_);
    }
    unless(defined(&_INT16_T_DEFINED_)) {
	eval 'sub _INT16_T_DEFINED_ () {1;}' unless defined(&_INT16_T_DEFINED_);
    }
    unless(defined(&_UINT16_T_DEFINED_)) {
	eval 'sub _UINT16_T_DEFINED_ () {1;}' unless defined(&_UINT16_T_DEFINED_);
    }
    unless(defined(&_INT32_T_DEFINED_)) {
	eval 'sub _INT32_T_DEFINED_ () {1;}' unless defined(&_INT32_T_DEFINED_);
    }
    unless(defined(&_UINT32_T_DEFINED_)) {
	eval 'sub _UINT32_T_DEFINED_ () {1;}' unless defined(&_UINT32_T_DEFINED_);
    }
    unless(defined(&_INT64_T_DEFINED_)) {
	eval 'sub _INT64_T_DEFINED_ () {1;}' unless defined(&_INT64_T_DEFINED_);
    }
    unless(defined(&_UINT64_T_DEFINED_)) {
	eval 'sub _UINT64_T_DEFINED_ () {1;}' unless defined(&_UINT64_T_DEFINED_);
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
    }
    unless(defined(&_CLOCK_T_DEFINED_)) {
	eval 'sub _CLOCK_T_DEFINED_ () {1;}' unless defined(&_CLOCK_T_DEFINED_);
    }
    unless(defined(&_CLOCKID_T_DEFINED_)) {
	eval 'sub _CLOCKID_T_DEFINED_ () {1;}' unless defined(&_CLOCKID_T_DEFINED_);
    }
    unless(defined(&_SIZE_T_DEFINED_)) {
	eval 'sub _SIZE_T_DEFINED_ () {1;}' unless defined(&_SIZE_T_DEFINED_);
    }
    unless(defined(&_SSIZE_T_DEFINED_)) {
	eval 'sub _SSIZE_T_DEFINED_ () {1;}' unless defined(&_SSIZE_T_DEFINED_);
    }
    unless(defined(&_TIME_T_DEFINED_)) {
	eval 'sub _TIME_T_DEFINED_ () {1;}' unless defined(&_TIME_T_DEFINED_);
    }
    unless(defined(&_TIMER_T_DEFINED_)) {
	eval 'sub _TIMER_T_DEFINED_ () {1;}' unless defined(&_TIMER_T_DEFINED_);
    }
    unless(defined(&_OFF_T_DEFINED_)) {
	eval 'sub _OFF_T_DEFINED_ () {1;}' unless defined(&_OFF_T_DEFINED_);
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)  && !defined( &_KERNEL)) {
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	eval 'sub major {
	    my($x) = @_;
    	    eval q((( &int32_t)((( &u_int32_t)($x) >> 8) & 0xff)));
	}' unless defined(&major);
	eval 'sub minor {
	    my($x) = @_;
    	    eval q((( &int32_t)(($x) & 0xff) | ((($x) & 0xffff0000) >> 8)));
	}' unless defined(&minor);
	eval 'sub makedev {
	    my($x,$y) = @_;
    	    eval q((( &dev_t)(((($x) & 0xff) << 8) | (($y) & 0xff) | ((($y) & 0xffff00) << 8))));
	}' unless defined(&makedev);
    }
    if((defined(&__BSD_VISIBLE) ? &__BSD_VISIBLE : 0)) {
	require 'sys/select.ph';
    }
    if(defined( &__STDC__)  && defined( &_KERNEL)) {
    }
}
1;
