require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_POWERPC_EXEC_H_)) {
    eval 'sub _POWERPC_EXEC_H_ () {1;}' unless defined(&_POWERPC_EXEC_H_);
    eval 'sub __LDPGSZ () {4096;}' unless defined(&__LDPGSZ);
    eval 'sub NATIVE_EXEC_ELF () {1;}' unless defined(&NATIVE_EXEC_ELF);
    eval 'sub EXEC_SCRIPT () {1;}' unless defined(&EXEC_SCRIPT);
    eval 'sub ARCH_ELFSIZE () {32;}' unless defined(&ARCH_ELFSIZE);
    eval 'sub ELF_TARG_CLASS () { &ELFCLASS32;}' unless defined(&ELF_TARG_CLASS);
    eval 'sub ELF_TARG_DATA () { &ELFDATA2MSB;}' unless defined(&ELF_TARG_DATA);
    eval 'sub ELF_TARG_MACH () { &EM_PPC;}' unless defined(&ELF_TARG_MACH);
    eval 'sub _NLIST_DO_ELF () {1;}' unless defined(&_NLIST_DO_ELF);
    eval 'sub _KERN_DO_ELF () {1;}' unless defined(&_KERN_DO_ELF);
}
1;
