require '_h2ph_pre.ph';

unless(defined(&_NFS_NFSNODE_H_)) {
    eval 'sub _NFS_NFSNODE_H_ () {1;}' unless defined(&_NFS_NFSNODE_H_);
    unless(defined(&_NFS_NFS_H_)) {
	require 'nfs/nfs.ph';
    }
    eval 'sub NFSNUMCOOKIES () {31;}' unless defined(&NFSNUMCOOKIES);
    eval 'sub n_atim () { ($n_un1->{nf_atim});}' unless defined(&n_atim);
    eval 'sub n_mtim () { ($n_un2->{nf_mtim});}' unless defined(&n_mtim);
    eval 'sub n_sillyrename () { ($n_un3->{nf_silly});}' unless defined(&n_sillyrename);
    eval 'sub n_cookieverf () { ($n_un1->{nd_cookieverf});}' unless defined(&n_cookieverf);
    eval 'sub n_direofoffset () { ($n_un2->{nd_direof});}' unless defined(&n_direofoffset);
    eval 'sub n_cookies () { ($n_un3->{nd_cook});}' unless defined(&n_cookies);
    eval 'sub NFLUSHWANT () {0x0001;}' unless defined(&NFLUSHWANT);
    eval 'sub NFLUSHINPROG () {0x0002;}' unless defined(&NFLUSHINPROG);
    eval 'sub NMODIFIED () {0x0004;}' unless defined(&NMODIFIED);
    eval 'sub NWRITEERR () {0x0008;}' unless defined(&NWRITEERR);
    eval 'sub NACC () {0x0100;}' unless defined(&NACC);
    eval 'sub NUPD () {0x0200;}' unless defined(&NUPD);
    eval 'sub NCHG () {0x0400;}' unless defined(&NCHG);
    eval 'sub VTONFS {
        local($vp) = @_;
	    eval q((($vp)-> &v_data));
    }' unless defined(&VTONFS);
    eval 'sub NFSTOV {
        local($np) = @_;
	    eval q((($np)-> &n_vnode));
    }' unless defined(&NFSTOV);
    if(defined(&_KERNEL)) {
	eval 'sub nfs_lease_check () {((\'int\' (*)  &__P(( &void *))) &nullop);}' unless defined(&nfs_lease_check);
	eval 'sub nqnfs_vop_lease_check () { &lease_check;}' unless defined(&nqnfs_vop_lease_check);
	eval 'sub nfs_ioctl () {((\'int\' (*)  &__P(( &void *))) &enoioctl);}' unless defined(&nfs_ioctl);
	eval 'sub nfs_select () {((\'int\' (*)  &__P(( &void *))) &seltrue);}' unless defined(&nfs_select);
	eval 'sub nfs_revoke () { &vop_generic_revoke;}' unless defined(&nfs_revoke);
	eval 'sub nfs_lock () {((\'int\' (*)  &__P(( &void *))) &vop_generic_lock);}' unless defined(&nfs_lock);
	eval 'sub nfs_unlock () {((\'int\' (*)  &__P(( &void *))) &vop_generic_unlock);}' unless defined(&nfs_unlock);
	eval 'sub nfs_islocked () {((\'int\' (*)  &__P(( &void *))) &vop_generic_islocked);}' unless defined(&nfs_islocked);
	eval 'sub nfs_reallocblks () {((\'int\' (*)  &__P(( &void *))) &eopnotsupp);}' unless defined(&nfs_reallocblks);
    }
}
1;
