require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_MACHINE_EXEC_H_)) {
    eval 'sub _MACHINE_EXEC_H_ () {1;}' unless defined(&_MACHINE_EXEC_H_);
    eval 'sub cpu_exec_aout_makecmds {
        my($p, $epp) = @_;
	    eval q( &ENOEXEC);
    }' unless defined(&cpu_exec_aout_makecmds);
    eval 'sub __LDPGSZ () {8192;}' unless defined(&__LDPGSZ);
    eval 'sub NATIVE_EXEC_ELF () {1;}' unless defined(&NATIVE_EXEC_ELF);
    eval 'sub ARCH_ELFSIZE () {64;}' unless defined(&ARCH_ELFSIZE);
    eval 'sub ELF_TARG_CLASS () { &ELFCLASS64;}' unless defined(&ELF_TARG_CLASS);
    eval 'sub ELF_TARG_DATA () { &ELFDATA2LSB;}' unless defined(&ELF_TARG_DATA);
    eval 'sub ELF_TARG_MACH () { &EM_ALPHA_EXP;}' unless defined(&ELF_TARG_MACH);
    eval 'sub _NLIST_DO_ECOFF () {1;}' unless defined(&_NLIST_DO_ECOFF);
    eval 'sub _NLIST_DO_ELF () {1;}' unless defined(&_NLIST_DO_ELF);
    eval 'sub _KERN_DO_ELF64 () {1;}' unless defined(&_KERN_DO_ELF64);
}
1;
