require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_xfs_common_h)) {
    eval 'sub _xfs_common_h () {1;}' unless defined(&_xfs_common_h);
    if(defined( &MALLOC_DECLARE)) {
    }
 elsif(!defined( &M_NNPFS)) {
	eval 'sub M_NNPFS () { &M_TEMP;}' unless defined(&M_NNPFS);
	eval 'sub M_NNPFS_NODE () { &M_TEMP;}' unless defined(&M_NNPFS_NODE);
	eval 'sub M_NNPFS_LINK () { &M_TEMP;}' unless defined(&M_NNPFS_LINK);
	eval 'sub M_NNPFS_MSG () { &M_TEMP;}' unless defined(&M_NNPFS_MSG);
    }
    if(defined(&NNPFS_DEBUG)) {
    } else {
	if(defined(&__osf__)) {
	    eval 'sub xfs_alloc {
	        my($a,$t) = @_;
    		eval q( &malloc(($a),  &BUCKETINDEX($a), $t,  &M_WAITOK));
	    }' unless defined(&xfs_alloc);
	} else {
	    eval 'sub xfs_alloc {
	        my($a,$t) = @_;
    		eval q( &malloc(($a), $t,  &M_WAITOK));
	    }' unless defined(&xfs_alloc);
	}
	eval 'sub xfs_free {
	    my($a, $size,$t) = @_;
    	    eval q( &free($a, $t));
	}' unless defined(&xfs_free);
    }
    unless(defined(&HAVE_KERNEL_MEMCPY)) {
    }
    unless(defined(&HAVE_KERNEL_STRLCPY)) {
    }
}
1;
