diff options
author | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-05-31 19:31:24 +0000 |
---|---|---|
committer | Thordur I. Bjornsson <thib@cvs.openbsd.org> | 2009-05-31 19:31:24 +0000 |
commit | 015c571fb6e65c138e507e3181db5ccdef7a8643 (patch) | |
tree | 2691829734ea6c9c7b20b0d46a403f555f3e80a1 /usr.sbin | |
parent | 2353e7443f1dfd8a562717064d5f7f64b1cafd09 (diff) |
Don't define NFS before including kernel header files,
besides it being gnarly its useless since no magic is
done if it is define.
pointed out by deraadt@
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/pstat/pstat.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.sbin/pstat/pstat.c b/usr.sbin/pstat/pstat.c index 24029b1568c..266212f7456 100644 --- a/usr.sbin/pstat/pstat.c +++ b/usr.sbin/pstat/pstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pstat.c,v 1.75 2008/10/07 02:30:02 deraadt Exp $ */ +/* $OpenBSD: pstat.c,v 1.76 2009/05/31 19:31:23 thib Exp $ */ /* $NetBSD: pstat.c,v 1.27 1996/10/23 22:50:06 cgd Exp $ */ /*- @@ -40,7 +40,7 @@ static char copyright[] = #if 0 from: static char sccsid[] = "@(#)pstat.c 8.9 (Berkeley) 2/16/94"; #else -static char *rcsid = "$OpenBSD: pstat.c,v 1.75 2008/10/07 02:30:02 deraadt Exp $"; +static char *rcsid = "$OpenBSD: pstat.c,v 1.76 2009/05/31 19:31:23 thib Exp $"; #endif #endif /* not lint */ @@ -53,9 +53,7 @@ static char *rcsid = "$OpenBSD: pstat.c,v 1.75 2008/10/07 02:30:02 deraadt Exp $ #include <sys/file.h> #include <ufs/ufs/quota.h> #include <ufs/ufs/inode.h> -#define NFS #include <sys/mount.h> -#undef NFS #undef _KERNEL #include <sys/stat.h> #include <nfs/nfsproto.h> |