require '_h2ph_pre.ph';

unless(defined(&_JFFS2_FS_SB)) {
    eval 'sub _JFFS2_FS_SB () {1;}' unless defined(&_JFFS2_FS_SB);
    require 'linux/types.ph';
    require 'linux/spinlock.ph';
    require 'linux/completion.ph';
    require 'asm/semaphore.ph';
    require 'linux/list.ph';
    eval 'sub INOCACHE_HASHSIZE () {1;}' unless defined(&INOCACHE_HASHSIZE);
    eval 'sub JFFS2_SB_FLAG_RO () {1;}' unless defined(&JFFS2_SB_FLAG_RO);
    if(defined(&JFFS2_OUT_OF_KERNEL)) {
	eval 'sub JFFS2_SB_INFO {
	    local($sb) = @_;
    	    eval q(( ($sb)-> &u));
	}' unless defined(&JFFS2_SB_INFO);
    } else {
	eval 'sub JFFS2_SB_INFO {
	    local($sb) = @_;
    	    eval q(( ($sb->{u}->{jffs2_sb})));
	}' unless defined(&JFFS2_SB_INFO);
    }
    eval 'sub OFNI_BS_2SFFJ {
        local($c) = @_;
	    eval q(( ( - ((( &NULL)-> &u)) ) ));
    }' unless defined(&OFNI_BS_2SFFJ);
}
1;
