require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_DEVICE_IF_H)) {
    eval 'sub _SYS_DEVICE_IF_H () {1;}' unless defined(&_SYS_DEVICE_IF_H);
    require 'sys/stdint.ph';
    if(defined(&_KERNEL) || defined(&_KMEMUSER)) {
	eval("sub DEVACT_LEVEL_CLASS () { 0; }") unless defined(&DEVACT_LEVEL_CLASS);
	eval("sub DEVACT_LEVEL_DRIVER () { 1; }") unless defined(&DEVACT_LEVEL_DRIVER);
	eval("sub DEVACT_LEVEL_BUS () { 2; }") unless defined(&DEVACT_LEVEL_BUS);
	eval 'sub DEVACT_LEVEL_FULL () { &DEVACT_LEVEL_CLASS;}' unless defined(&DEVACT_LEVEL_FULL);
    }
}
1;
