require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_DISKLABEL_RDB_H_)) {
    eval 'sub _SYS_DISKLABEL_RDB_H_ () {1;}' unless defined(&_SYS_DISKLABEL_RDB_H_);
    require 'sys/types.ph';
    eval 'sub RDBNULL () {(( &uint32_t)0xffffffff);}' unless defined(&RDBNULL);
    eval 'sub RDB_MAXBLOCKS () {16;}' unless defined(&RDB_MAXBLOCKS);
    if((defined(&never_use_secsize) ? &never_use_secsize : undef)) {
    }
    eval 'sub RDBF_LAST () {0x1;}' unless defined(&RDBF_LAST);
    eval 'sub RDBF_LASTLUN () {0x2;}' unless defined(&RDBF_LASTLUN);
    eval 'sub RDBF_LASTUNIT () {0x4;}' unless defined(&RDBF_LASTUNIT);
    eval 'sub RDBF_NORESELECT () {0x8;}' unless defined(&RDBF_NORESELECT);
    eval 'sub RDBF_DISKID () {0x10;}' unless defined(&RDBF_DISKID);
    eval 'sub RDBF_CTRLID () {0x20;}' unless defined(&RDBF_CTRLID);
    eval 'sub RDBF_SYNC () {0x40;}' unless defined(&RDBF_SYNC);
    if((defined(&never_use_secsize) ? &never_use_secsize : undef)) {
    }
    eval 'sub PBF_BOOTABLE () {0x1;}' unless defined(&PBF_BOOTABLE);
    eval 'sub PBF_NOMOUNT () {0x2;}' unless defined(&PBF_NOMOUNT);
    if((defined(&never_use_secsize) ? &never_use_secsize : undef)) {
    }
    eval 'sub RDBLOCK_ID () {0x5244534b;}' unless defined(&RDBLOCK_ID);
    eval 'sub PARTBLOCK_ID () {0x50415254;}' unless defined(&PARTBLOCK_ID);
    eval 'sub BADBLOCK_ID () {0x42414442;}' unless defined(&BADBLOCK_ID);
    eval 'sub FSBLOCK_ID () {0x46534844;}' unless defined(&FSBLOCK_ID);
    eval 'sub LSEGBLOCK_ID () {0x4c534547;}' unless defined(&LSEGBLOCK_ID);
    eval 'sub DOST_XXXBSD () {0x42534400;}' unless defined(&DOST_XXXBSD);
    eval 'sub DOST_NBR () {0x4e425200;}' unless defined(&DOST_NBR);
    eval 'sub DOST_NBS () {0x4e425300;}' unless defined(&DOST_NBS);
    eval 'sub DOST_NBU () {0x4e425500;}' unless defined(&DOST_NBU);
    eval 'sub DOST_DOS () {0x444f5300;}' unless defined(&DOST_DOS);
    eval 'sub DOST_AMIX () {0x554e4900;}' unless defined(&DOST_AMIX);
    eval 'sub DOST_MUFS () {0x6d754600;}' unless defined(&DOST_MUFS);
    eval 'sub DOST_EXT2 () {0x4c4e5800;}' unless defined(&DOST_EXT2);
    eval 'sub DOST_LNXSWP () {0x53575000;}' unless defined(&DOST_LNXSWP);
    eval 'sub DOST_RAID () {0x52414900;}' unless defined(&DOST_RAID);
    eval 'sub DOST_MSD () {0x4d534400;}' unless defined(&DOST_MSD);
    eval 'sub DOST_SFS () {0x53465300;}' unless defined(&DOST_SFS);
    eval 'sub ADT_UNKNOWN () {0;}' unless defined(&ADT_UNKNOWN);
    eval 'sub ADT_AMIGADOS () {1;}' unless defined(&ADT_AMIGADOS);
    eval 'sub ADT_NETBSDROOT () {2;}' unless defined(&ADT_NETBSDROOT);
    eval 'sub ADT_NETBSDSWAP () {3;}' unless defined(&ADT_NETBSDSWAP);
    eval 'sub ADT_NETBSDUSER () {4;}' unless defined(&ADT_NETBSDUSER);
    eval 'sub ADT_AMIX () {5;}' unless defined(&ADT_AMIX);
    eval 'sub ADT_EXT2 () {6;}' unless defined(&ADT_EXT2);
    eval 'sub ADT_RAID () {7;}' unless defined(&ADT_RAID);
    eval 'sub ADT_MSD () {8;}' unless defined(&ADT_MSD);
    eval 'sub ADT_SFS () {9;}' unless defined(&ADT_SFS);
    eval 'sub ISFSARCH_NETBSD {
        my($adt) = @_;
	    eval q((($adt). &archtype >=  &ADT_NETBSDROOT  && ($adt). &archtype <=  &ADT_NETBSDUSER));
    }' unless defined(&ISFSARCH_NETBSD);
}
1;
