summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-03-29 12:50:41 +0000
committerbde <bde@FreeBSD.org>1997-03-29 12:50:41 +0000
commit4f000a95d2130d879224c2d13758468253802fa6 (patch)
tree4c46fc6eeee070684c1cf4945160341b4f7d96c8
parent5cfbec5a24a78b46363d52813f0ab55cc5aae08f (diff)
downloadFreeBSD-src-4f000a95d2130d879224c2d13758468253802fa6.zip
FreeBSD-src-4f000a95d2130d879224c2d13758468253802fa6.tar.gz
Removed `#define KERNEL'. This was a hack-around for nfs.h being broken
in the Lite2 merge to not export some nfs constants. It started causing warnings when I added a kernel-only #define for DIRBLKSIZ. Removed `#define NFS'. This was an old, bad interface for telling <sys/mount.h> to export nfs stuff.
-rw-r--r--usr.bin/fstat/fstat.c4
-rw-r--r--usr.sbin/pstat/pstat.c4
2 files changed, 0 insertions, 8 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c
index c879a97..4ffab31 100644
--- a/usr.bin/fstat/fstat.c
+++ b/usr.bin/fstat/fstat.c
@@ -61,15 +61,11 @@ static char sccsid[] = "@(#)fstat.c 8.3 (Berkeley) 5/2/95";
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
#undef KERNEL
-#define NFS
#include <sys/mount.h>
#include <nfs/nfsproto.h>
#include <nfs/rpcv2.h>
-#define KERNEL
#include <nfs/nfs.h>
-#undef KERNEL
#include <nfs/nfsnode.h>
-#undef NFS
#include <net/route.h>
#include <netinet/in.h>
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c
index 31ff096..c98dbd1e 100644
--- a/usr.sbin/pstat/pstat.c
+++ b/usr.sbin/pstat/pstat.c
@@ -49,9 +49,7 @@ static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
#include <sys/file.h>
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
-#define NFS
#include <sys/mount.h>
-#undef NFS
#include <sys/uio.h>
#include <sys/namei.h>
#include <miscfs/union/union.h>
@@ -59,9 +57,7 @@ static char sccsid[] = "@(#)pstat.c 8.16 (Berkeley) 5/9/95";
#include <sys/stat.h>
#include <nfs/rpcv2.h>
#include <nfs/nfsproto.h>
-#define KERNEL
#include <nfs/nfs.h>
-#undef KERNEL
#include <nfs/nfsnode.h>
#include <sys/ioctl.h>
#include <sys/ioctl_compat.h> /* XXX NTTYDISC is too well hidden */
OpenPOWER on IntegriCloud