require '_h2ph_pre.ph';

unless(defined(&_LINUX_MINIX_FS_H)) {
    eval 'sub _LINUX_MINIX_FS_H () {1;}' unless defined(&_LINUX_MINIX_FS_H);
    eval 'sub MINIX_ROOT_INO () {1;}' unless defined(&MINIX_ROOT_INO);
    eval 'sub MINIX_LINK_MAX () {250;}' unless defined(&MINIX_LINK_MAX);
    eval 'sub MINIX2_LINK_MAX () {65530;}' unless defined(&MINIX2_LINK_MAX);
    eval 'sub MINIX_I_MAP_SLOTS () {8;}' unless defined(&MINIX_I_MAP_SLOTS);
    eval 'sub MINIX_Z_MAP_SLOTS () {64;}' unless defined(&MINIX_Z_MAP_SLOTS);
    eval 'sub MINIX_SUPER_MAGIC () {0x137f;}' unless defined(&MINIX_SUPER_MAGIC);
    eval 'sub MINIX_SUPER_MAGIC2 () {0x138f;}' unless defined(&MINIX_SUPER_MAGIC2);
    eval 'sub MINIX2_SUPER_MAGIC () {0x2468;}' unless defined(&MINIX2_SUPER_MAGIC);
    eval 'sub MINIX2_SUPER_MAGIC2 () {0x2478;}' unless defined(&MINIX2_SUPER_MAGIC2);
    eval 'sub MINIX_VALID_FS () {0x1;}' unless defined(&MINIX_VALID_FS);
    eval 'sub MINIX_ERROR_FS () {0x2;}' unless defined(&MINIX_ERROR_FS);
    eval 'sub MINIX_INODES_PER_BLOCK () {(( &BLOCK_SIZE)/($sizeof{\'struct minix_inode\'}));}' unless defined(&MINIX_INODES_PER_BLOCK);
    eval 'sub MINIX2_INODES_PER_BLOCK () {(( &BLOCK_SIZE)/($sizeof{\'struct minix2_inode\'}));}' unless defined(&MINIX2_INODES_PER_BLOCK);
    eval 'sub MINIX_V1 () {0x1;}' unless defined(&MINIX_V1);
    eval 'sub MINIX_V2 () {0x2;}' unless defined(&MINIX_V2);
    eval 'sub INODE_VERSION {
        local($inode) = @_;
	    eval q( ($inode->{i_sb}->{u}->{minix_sb}->{s_version}));
    }' unless defined(&INODE_VERSION);
}
1;
