require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_AMD64_RBUS_MACHDEP_H_)) {
    eval 'sub _AMD64_RBUS_MACHDEP_H_ () {1;}' unless defined(&_AMD64_RBUS_MACHDEP_H_);
    eval 'sub md_space_map {
        my($bt, $physaddr, $size, $flags, $bshp) = @_;
	    eval q( &_bus_space_map(($bt), ($physaddr), ($size), ($flags), ($bshp)));
    }' unless defined(&md_space_map);
    eval 'sub md_space_unmap {
        my($bt, $bsh, $size, $adrp) = @_;
	    eval q( &_bus_space_unmap(($bt), ($bsh), ($size), ($adrp)));
    }' unless defined(&md_space_unmap);
}
1;
