summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1997-01-01 21:07:15 +0000
committerphk <phk@FreeBSD.org>1997-01-01 21:07:15 +0000
commite4302d7ae5c59780ea67fff1e041402bd0a10607 (patch)
treec202cbe49a7f03ce70d3ba87b8befa42c1e109b8 /sys
parent07e783bc3eb2bb61a692e734cf205be502266408 (diff)
downloadFreeBSD-src-e4302d7ae5c59780ea67fff1e041402bd0a10607.zip
FreeBSD-src-e4302d7ae5c59780ea67fff1e041402bd0a10607.tar.gz
Make it possible to test kernel code in a userland harness, even if it
uses MAKE_SET or derivatives and <sys/time.h> at the same time...
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/kernel.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/sys/kernel.h b/sys/sys/kernel.h
index d9282a3..2616abe 100644
--- a/sys/sys/kernel.h
+++ b/sys/sys/kernel.h
@@ -39,7 +39,7 @@
* SUCH DAMAGE.
*
* @(#)kernel.h 8.3 (Berkeley) 1/21/94
- * $Id: kernel.h,v 1.21 1996/09/03 22:52:26 bde Exp $
+ * $Id: kernel.h,v 1.22 1996/09/20 14:36:14 bde Exp $
*/
#ifndef _SYS_KERNEL_H_
@@ -47,6 +47,7 @@
/* Global variables for the kernel. */
+#ifdef KERNEL
/* 1.1 */
extern long hostid;
extern char hostname[MAXHOSTNAMELEN];
@@ -72,6 +73,7 @@ extern int lbolt; /* once a second sleep address */
extern int tickdelta;
extern long timedelta;
+#endif /* KERNEL */
/*
* The following macros are used to declare global sets of objects, which
* are collected by the linker into a `struct linker_set' as defined below.
OpenPOWER on IntegriCloud