NFSD as module in 2.1.33 with GlibC

bofh@snoopy.virtual.net.au
Sun, 13 Apr 97 15:58:03 +1100


I've found a problem when compiling 2.1.33 with kernel nfsd as a module on a system with the GlibC header files installed. Here's the patch I needed to get it to compile. I assume that as removing the netinet/in.h header file didn't generate errors or warnings it didn't do any harm...

*** linux/fs/nfsd/vfs.c.orig Sun Apr 13 15:47:42 1997
--- linux/fs/nfsd/vfs.c Sun Apr 13 15:47:52 1997
***************
*** 29,35 ****
#include <linux/in.h>
#include <linux/unistd.h>
#include <linux/malloc.h>
! #include <netinet/in.h>

#include <linux/sunrpc/svc.h>
#include <linux/nfsd/nfsd.h>
--- 29,35 ----
#include <linux/in.h>
#include <linux/unistd.h>
#include <linux/malloc.h>
! /*#include <netinet/in.h>*/

#include <linux/sunrpc/svc.h>
#include <linux/nfsd/nfsd.h>