require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_ARM_SIGNAL_H_)) {
    eval 'sub _ARM_SIGNAL_H_ () {1;}' unless defined(&_ARM_SIGNAL_H_);
    require 'sys/featuretest.ph';
    require 'sys/sigtypes.ph';
    unless(defined(&_LOCORE)) {
    }
    if(defined(&__arm__)) {
	eval 'sub __HAVE_STRUCT_SIGCONTEXT () {1;}' unless defined(&__HAVE_STRUCT_SIGCONTEXT);
	if(defined(&_NETBSD_SOURCE)) {
	    unless(defined(&_LOCORE)) {
		if(defined(&_KERNEL)) {
		}
		if(defined(&_LIBC) || defined(&_KERNEL)) {
		}
	    }
	    eval 'sub SIG_CODE_FPE_CODE_MASK () {0xf00;}' unless defined(&SIG_CODE_FPE_CODE_MASK);
	    eval 'sub SIG_CODE_FPE_CODE_SHIFT () {8;}' unless defined(&SIG_CODE_FPE_CODE_SHIFT);
	    eval 'sub SIG_CODE_FPE_TYPE_MASK () {0xff;}' unless defined(&SIG_CODE_FPE_TYPE_MASK);
	    eval 'sub SIG_CODE_BUS_ADDR_MASK () {0xfffffff0;}' unless defined(&SIG_CODE_BUS_ADDR_MASK);
	    eval 'sub SIG_CODE_BUS_TYPE_MASK () {0xf;}' unless defined(&SIG_CODE_BUS_TYPE_MASK);
	    eval 'sub SIG_CODE_SEGV_ADDR_MASK () { &SIG_CODE_BUS_ADDR_MASK;}' unless defined(&SIG_CODE_SEGV_ADDR_MASK);
	    eval 'sub SIG_CODE_SEGV_TYPE_MASK () { &SIG_CODE_BUS_TYPE_MASK;}' unless defined(&SIG_CODE_SEGV_TYPE_MASK);
	}
    }
}
1;
