Re: [util-linux] nfsmount.c compile problem in 2.10p

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



    From glouis@dynamicro.on.ca Sat Oct 21 00:50:06 2000

    On Fri, 20 Oct 2000 Andries.Brouwer@cwi.nl wrote:

    > > nfsmount.c:659: `NFS_FHSIZE' undeclared
    > > nfsmount.c:711: `NFS_PORT' undeclared
    > 
    > Now these constants are declared in <linux/nfs.h>:
    > 
    > #define NFS_PORT 2049
    > #define NFS_FHSIZE 32
    > 
    > This is present in kernel 0.99p13 and 2.2.17 and 2.4.0test9
    > and every other kernel version since 1.0.

    I'm sure you know that Alan Cox has been integrating new NFS code.
    The file looks like this now (ie in 2.2.18pre17), ...

OK. The kernel no longer needs these definitions. But mount still needs them
since it can be used in old environments. So, mount has to provide
these definitions itself.

% diff nfsmount.c~ nfsmount.c
60a61,67
> #ifndef NFS_PORT
> #define NFS_PORT 2049
> #endif
> #ifndef NFS_FHSIZE
> #define NFS_FHSIZE 32
> #endif
> 

Andries
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux