require '_h2ph_pre.ph';

unless(defined(&__LINUX_JFFS_H__)) {
    eval 'sub __LINUX_JFFS_H__ () {1;}' unless defined(&__LINUX_JFFS_H__);
    eval 'sub JFFS_VERSION_STRING () {"1.0";}' unless defined(&JFFS_VERSION_STRING);
    require 'linux/completion.ph';
    eval 'sub JFFS_MAGIC_SB_BITMASK () {0x7c0;}' unless defined(&JFFS_MAGIC_SB_BITMASK);
    eval 'sub JFFS_MAGIC_BITMASK () {0x34383931;}' unless defined(&JFFS_MAGIC_BITMASK);
    eval 'sub JFFS_EMPTY_BITMASK () {0xffffffff;}' unless defined(&JFFS_EMPTY_BITMASK);
    eval 'sub JFFS_DIRTY_BITMASK () {0x;}' unless defined(&JFFS_DIRTY_BITMASK);
    eval 'sub JFFS_MIN_INO () {1;}' unless defined(&JFFS_MIN_INO);
    eval 'sub JFFS_HASH_SIZE () {40;}' unless defined(&JFFS_HASH_SIZE);
    eval 'sub JFFS_MAX_NAME_LEN () {254;}' unless defined(&JFFS_MAX_NAME_LEN);
    eval 'sub JFFS_IOCTL_MAGIC () {ord(\'t\');}' unless defined(&JFFS_IOCTL_MAGIC);
    eval 'sub JFFS_PRINT_HASH () { &_IO( &JFFS_IOCTL_MAGIC, 90);}' unless defined(&JFFS_PRINT_HASH);
    eval 'sub JFFS_PRINT_TREE () { &_IO( &JFFS_IOCTL_MAGIC, 91);}' unless defined(&JFFS_PRINT_TREE);
    eval 'sub JFFS_GET_STATUS () { &_IO( &JFFS_IOCTL_MAGIC, 92);}' unless defined(&JFFS_GET_STATUS);
    eval 'sub JFFS_MODIFY_INODE () {0x1;}' unless defined(&JFFS_MODIFY_INODE);
    eval 'sub JFFS_MODIFY_NAME () {0x2;}' unless defined(&JFFS_MODIFY_NAME);
    eval 'sub JFFS_MODIFY_DATA () {0x4;}' unless defined(&JFFS_MODIFY_DATA);
    eval 'sub JFFS_MODIFY_EXIST () {0x8;}' unless defined(&JFFS_MODIFY_EXIST);
    eval 'sub JFFS_RAW_INODE_ACCURATE_OFFSET () {($sizeof{\'struct jffs_raw_inode\'} - 2* $sizeof{ &__u32} - $sizeof{ &__u8});}' unless defined(&JFFS_RAW_INODE_ACCURATE_OFFSET);
    eval 'sub JFFS_RAW_INODE_CHKSUM_OFFSET () {($sizeof{\'struct jffs_raw_inode\'} - $sizeof{ &__u16});}' unless defined(&JFFS_RAW_INODE_CHKSUM_OFFSET);
    eval 'sub JFFS_RAW_INODE_DCHKSUM_OFFSET () {($sizeof{\'struct jffs_raw_inode\'} - $sizeof{ &__u16} - $sizeof{ &__u16} - $sizeof{ &__u32});}' unless defined(&JFFS_RAW_INODE_DCHKSUM_OFFSET);
    eval 'sub JFFS_MEMORY_DEBUG () {0;}' unless defined(&JFFS_MEMORY_DEBUG);
    if(defined( &JFFS_MEMORY_DEBUG)  && (defined(&JFFS_MEMORY_DEBUG) ? &JFFS_MEMORY_DEBUG : 0)) {
	eval 'sub DJM {
	    local($x) = @_;
    	    eval q($x);
	}' unless defined(&DJM);
    } else {
	eval 'sub DJM {
	    local($x) = @_;
    	    eval q();
	}' unless defined(&DJM);
    }
}
1;
