require '_h2ph_pre.ph';

no warnings 'redefine';

unless(defined(&_NFS_NFS_VAR_H_)) {
    eval 'sub _NFS_NFS_VAR_H_ () {1;}' unless defined(&_NFS_NFS_VAR_H_);
    if(defined(&_KERNEL)) {
	eval 'sub nfs_ioctl () {(( &int (*)( &void *)) &enoioctl);}' unless defined(&nfs_ioctl);
	eval 'sub nfs_revoke () { &vop_generic_revoke;}' unless defined(&nfs_revoke);
	eval 'sub nfs_lock () { &vop_generic_lock;}' unless defined(&nfs_lock);
	eval 'sub nfs_unlock () { &vop_generic_unlock;}' unless defined(&nfs_unlock);
	eval 'sub nfs_islocked () { &vop_generic_islocked;}' unless defined(&nfs_islocked);
	eval 'sub mb_offset {
	    my($m) = @_;
    	    eval q(( &mtod(($m), \'caddr_t\') + ($m)-> &m_len));
	}' unless defined(&mb_offset);
	eval 'sub nfsm_padlen {
	    my($s) = @_;
    	    eval q(( &nfsm_rndup($s) - ($s)));
	}' unless defined(&nfsm_padlen);
    }
}
1;
