require '_h2ph_pre.ph';

unless(defined(&UMAPFILEENTRIES)) {
    sub UMAPFILEENTRIES () {	64;}
}
unless(defined(&GMAPFILEENTRIES)) {
    sub GMAPFILEENTRIES () {	16;}
}
unless(defined(&NOBODY)) {
    sub NOBODY () {	32767;}
}
unless(defined(&NULLGROUP)) {
    sub NULLGROUP () {	65534;}
}
if(defined(&_KERNEL)) {
    eval 'sub MOUNTTOUMAPMOUNT {
        local($mp) = @_;
	    eval q(((($mp)-> &mnt_data)));
    }' unless defined(&MOUNTTOUMAPMOUNT);
    eval 'sub VTOUMAP {
        local($vp) = @_;
	    eval q((($vp)-> &v_data));
    }' unless defined(&VTOUMAP);
    eval 'sub UMAPTOV {
        local($xp) = @_;
	    eval q((($xp)-> &umap_vnode));
    }' unless defined(&UMAPTOV);
    if(defined(&UMAPFS_DIAGNOSTIC)) {
	eval 'sub UMAPVPTOLOWERVP {
	    local($vp) = @_;
    	    eval q( &umap_checkvp(($vp),  &__FILE__,  &__LINE__));
	}' unless defined(&UMAPVPTOLOWERVP);
    } else {
	eval 'sub UMAPVPTOLOWERVP {
	    local($vp) = @_;
    	    eval q(( &VTOUMAP($vp)-> &umap_lowervp));
	}' unless defined(&UMAPVPTOLOWERVP);
    }
}
1;
