Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/fstat Define "_LKM" before including kernel includes...
details: https://anonhg.NetBSD.org/src/rev/6b09b1a38bb6
branches: trunk
changeset: 474492:6b09b1a38bb6
user: tron <tron%NetBSD.org@localhost>
date: Thu Jul 08 12:07:56 1999 +0000
description:
Define "_LKM" before including kernel includes with "_KERNEL" defined
so that "opt_ffs.h" gets skipped.
diffstat:
usr.bin/fstat/fstat.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r a64cb6cdabab -r 6b09b1a38bb6 usr.bin/fstat/fstat.c
--- a/usr.bin/fstat/fstat.c Thu Jul 08 11:53:35 1999 +0000
+++ b/usr.bin/fstat/fstat.c Thu Jul 08 12:07:56 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fstat.c,v 1.35 1999/05/02 22:50:19 thorpej Exp $ */
+/* $NetBSD: fstat.c,v 1.36 1999/07/08 12:07:56 tron Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -43,7 +43,7 @@
#if 0
static char sccsid[] = "@(#)fstat.c 8.3 (Berkeley) 5/2/95";
#else
-__RCSID("$NetBSD: fstat.c,v 1.35 1999/05/02 22:50:19 thorpej Exp $");
+__RCSID("$NetBSD: fstat.c,v 1.36 1999/07/08 12:07:56 tron Exp $");
#endif
#endif /* not lint */
@@ -61,9 +61,11 @@
#include <sys/sysctl.h>
#include <sys/filedesc.h>
#define _KERNEL
+#define _LKM
#include <sys/file.h>
#include <ufs/ufs/quota.h>
#include <ufs/ufs/inode.h>
+#undef _LKM
#undef _KERNEL
#define NFS
#include <sys/mount.h>
Home |
Main Index |
Thread Index |
Old Index