require '_h2ph_pre.ph';

no warnings qw(redefine misc);

unless(defined(&_SYS_DISKLABEL_GPT_H_)) {
    eval 'sub _SYS_DISKLABEL_GPT_H_ () {1;}' unless defined(&_SYS_DISKLABEL_GPT_H_);
    eval 'sub GPT_HDR_SIG () {"EFI PART";}' unless defined(&GPT_HDR_SIG);
    eval 'sub GPT_HDR_REVISION () {0x10000;}' unless defined(&GPT_HDR_REVISION);
    eval 'sub GPT_HDR_BLKNO () {1;}' unless defined(&GPT_HDR_BLKNO);
    eval 'sub GPT_HDR_SIZE () {0x5c;}' unless defined(&GPT_HDR_SIZE);
    eval 'sub GPT_ENT_ATTR_REQUIRED_PARTITION () {(1 << 0);}' unless defined(&GPT_ENT_ATTR_REQUIRED_PARTITION);
    eval 'sub GPT_ENT_ATTR_NO_BLOCK_IO_PROTOCOL () {(1 << 1);}' unless defined(&GPT_ENT_ATTR_NO_BLOCK_IO_PROTOCOL);
    eval 'sub GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE () {(1 << 2);}' unless defined(&GPT_ENT_ATTR_LEGACY_BIOS_BOOTABLE);
    eval 'sub GPT_ENT_ATTR_BOOTME () {(1 << 59);}' unless defined(&GPT_ENT_ATTR_BOOTME);
    eval 'sub GPT_ENT_ATTR_BOOTONCE () {(1 << 58);}' unless defined(&GPT_ENT_ATTR_BOOTONCE);
    eval 'sub GPT_ENT_ATTR_BOOTFAILED () {(1 << 57);}' unless defined(&GPT_ENT_ATTR_BOOTFAILED);
    eval 'sub GPT_ENT_TYPE_UNUSED () {{0x,0x,0x,0x,0x,{0x,0x,0x,0x,0x,0x}};}' unless defined(&GPT_ENT_TYPE_UNUSED);
    eval 'sub GPT_ENT_TYPE_EFI () {{0xc12a7328,0xf81f,0x11d2,0xba,0x4b,{0x,0xa0,0xc9,0x3e,0xc9,0x3b}};}' unless defined(&GPT_ENT_TYPE_EFI);
    eval 'sub GPT_ENT_TYPE_MBR () {{0x24dee41,0x33e7,0x11d3,0x9d,0x69,{0x,0x8,0xc7,0x81,0xf3,0x9f}};}' unless defined(&GPT_ENT_TYPE_MBR);
    eval 'sub GPT_ENT_TYPE_NETBSD_SWAP () {{0x49f48d32,0xb10e,0x11dc,0xb9,0x9b,{0x,0x19,0xd1,0x87,0x96,0x48}};}' unless defined(&GPT_ENT_TYPE_NETBSD_SWAP);
    eval 'sub GPT_ENT_TYPE_NETBSD_FFS () {{0x49f48d5a,0xb10e,0x11dc,0xb9,0x9b,{0x,0x19,0xd1,0x87,0x96,0x48}};}' unless defined(&GPT_ENT_TYPE_NETBSD_FFS);
    eval 'sub GPT_ENT_TYPE_NETBSD_LFS () {{0x49f48d82,0xb10e,0x11dc,0xb9,0x9b,{0x,0x19,0xd1,0x87,0x96,0x48}};}' unless defined(&GPT_ENT_TYPE_NETBSD_LFS);
    eval 'sub GPT_ENT_TYPE_NETBSD_RAIDFRAME () {{0x49f48daa,0xb10e,0x11dc,0xb9,0x9b,{0x,0x19,0xd1,0x87,0x96,0x48}};}' unless defined(&GPT_ENT_TYPE_NETBSD_RAIDFRAME);
    eval 'sub GPT_ENT_TYPE_NETBSD_CCD () {{0x2db519c4,0xb10f,0x11dc,0xb9,0x9b,{0x,0x19,0xd1,0x87,0x96,0x48}};}' unless defined(&GPT_ENT_TYPE_NETBSD_CCD);
    eval 'sub GPT_ENT_TYPE_NETBSD_CGD () {{0x2db519ec,0xb10f,0x11dc,0xb9,0x9b,{0x,0x19,0xd1,0x87,0x96,0x48}};}' unless defined(&GPT_ENT_TYPE_NETBSD_CGD);
    eval 'sub GPT_ENT_TYPE_FREEBSD () {{0x516e7cb4,0x6ecf,0x11d6,0x8f,0xf8,{0x,0x2,0x2d,0x9,0x71,0x2b}};}' unless defined(&GPT_ENT_TYPE_FREEBSD);
    eval 'sub GPT_ENT_TYPE_FREEBSD_SWAP () {{0x516e7cb5,0x6ecf,0x11d6,0x8f,0xf8,{0x,0x2,0x2d,0x9,0x71,0x2b}};}' unless defined(&GPT_ENT_TYPE_FREEBSD_SWAP);
    eval 'sub GPT_ENT_TYPE_FREEBSD_UFS () {{0x516e7cb6,0x6ecf,0x11d6,0x8f,0xf8,{0x,0x2,0x2d,0x9,0x71,0x2b}};}' unless defined(&GPT_ENT_TYPE_FREEBSD_UFS);
    eval 'sub GPT_ENT_TYPE_FREEBSD_VINUM () {{0x516e7cb8,0x6ecf,0x11d6,0x8f,0xf8,{0x,0x2,0x2d,0x9,0x71,0x2b}};}' unless defined(&GPT_ENT_TYPE_FREEBSD_VINUM);
    eval 'sub GPT_ENT_TYPE_FREEBSD_ZFS () {{0x516e7cba,0x6ecf,0x11d6,0x8f,0xf8,{0x,0x2,0x2d,0x9,0x71,0x2b}};}' unless defined(&GPT_ENT_TYPE_FREEBSD_ZFS);
    eval 'sub GPT_ENT_TYPE_MS_RESERVED () {{0xe3c9e316,0xb5c,0x4db8,0x81,0x7d,{0xf9,0x2d,0xf0,0x2,0x15,0xae}};}' unless defined(&GPT_ENT_TYPE_MS_RESERVED);
    eval 'sub GPT_ENT_TYPE_MS_BASIC_DATA () {{0xebd0a0a2,0xb9e5,0x4433,0x87,0xc0,{0x68,0xb6,0xb7,0x26,0x99,0xc7}};}' unless defined(&GPT_ENT_TYPE_MS_BASIC_DATA);
    eval 'sub GPT_ENT_TYPE_MS_LDM_METADATA () {{0x5808c8aa,0x7e8f,0x42e0,0x85,0xd2,{0xe1,0xe9,0x4,0x34,0xcf,0xb3}};}' unless defined(&GPT_ENT_TYPE_MS_LDM_METADATA);
    eval 'sub GPT_ENT_TYPE_MS_LDM_DATA () {{0xaf9b60a0,0x1431,0x4f62,0xbc,0x68,{0x33,0x11,0x71,0x4a,0x69,0xad}};}' unless defined(&GPT_ENT_TYPE_MS_LDM_DATA);
    eval 'sub GPT_ENT_TYPE_LINUX_DATA () {{0xfc63daf,0x8483,0x4772,0x8e,0x79,{0x3d,0x69,0xd8,0x47,0x7d,0xe4}};}' unless defined(&GPT_ENT_TYPE_LINUX_DATA);
    eval 'sub GPT_ENT_TYPE_LINUX_RAID () {{0xa19d880f,0x5fc,0x4d3b,0xa0,0x6,{0x74,0x3f,0xf,0x84,0x91,0x1e}};}' unless defined(&GPT_ENT_TYPE_LINUX_RAID);
    eval 'sub GPT_ENT_TYPE_LINUX_SWAP () {{0x657fd6d,0xa4ab,0x43c4,0x84,0xe5,{0x9,0x33,0xc8,0x4b,0x4f,0x4f}};}' unless defined(&GPT_ENT_TYPE_LINUX_SWAP);
    eval 'sub GPT_ENT_TYPE_LINUX_LVM () {{0xe6d6d379,0xf507,0x44c2,0xa2,0x3c,{0x23,0x8f,0x2a,0x3d,0xf9,0x28}};}' unless defined(&GPT_ENT_TYPE_LINUX_LVM);
    eval 'sub GPT_ENT_TYPE_APPLE_HFS () {{0x48465300,0x,0x11aa,0xaa,0x11,{0x,0x30,0x65,0x43,0xec,0xac}};}' unless defined(&GPT_ENT_TYPE_APPLE_HFS);
    eval 'sub GPT_ENT_TYPE_APPLE_UFS () {{0x55465300,0x,0x11aa,0xaa,0x11,{0x,0x30,0x65,0x43,0xec,0xac}};}' unless defined(&GPT_ENT_TYPE_APPLE_UFS);
    eval 'sub GPT_ENT_TYPE_BIOS () {{0x21686148,0x6449,0x6e6f,0x74,0x4e,{0x65,0x65,0x64,0x45,0x46,0x49}};}' unless defined(&GPT_ENT_TYPE_BIOS);
    eval 'sub GPT_ENT_TYPE_VMWARE_VMKCORE () {{0x9d275380,0x40ad,0x11db,0xbf,0x97,{0x,0xc,0x29,0x11,0xd1,0xb8}};}' unless defined(&GPT_ENT_TYPE_VMWARE_VMKCORE);
    eval 'sub GPT_ENT_TYPE_VMWARE_VMFS () {{0xaa31e02a,0x400f,0x11db,0x95,0x90,{0x,0xc,0x29,0x11,0xd1,0xb8}};}' unless defined(&GPT_ENT_TYPE_VMWARE_VMFS);
    eval 'sub GPT_ENT_TYPE_VMWARE_RESERVED () {{0x9198effc,0x31c0,0x11db,0x8f,0x78,{0x,0xc,0x29,0x11,0xd1,0xb8}};}' unless defined(&GPT_ENT_TYPE_VMWARE_RESERVED);
}
1;
