Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sbin/mknod We only need sys/sysctl.h when we are building on...



details:   https://anonhg.NetBSD.org/src/rev/7642207f00f3
branches:  trunk
changeset: 567519:7642207f00f3
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jun 17 23:15:07 2004 +0000

description:
We only need sys/sysctl.h when we are building on NetBSD not as a host tool.

diffstat:

 sbin/mknod/mknod.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 277e59ae1a9c -r 7642207f00f3 sbin/mknod/mknod.c
--- a/sbin/mknod/mknod.c        Thu Jun 17 21:30:14 2004 +0000
+++ b/sbin/mknod/mknod.c        Thu Jun 17 23:15:07 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mknod.c,v 1.32 2004/06/17 21:09:01 dsl Exp $   */
+/*     $NetBSD: mknod.c,v 1.33 2004/06/17 23:15:07 christos Exp $      */
 
 /*-
  * Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@@ -43,13 +43,15 @@
 #include <sys/cdefs.h>
 #ifndef lint
 __COPYRIGHT("@(#) Copyright (c) 1998 The NetBSD Foundation, Inc.  All rights reserved.\n");
-__RCSID("$NetBSD: mknod.c,v 1.32 2004/06/17 21:09:01 dsl Exp $");
+__RCSID("$NetBSD: mknod.c,v 1.33 2004/06/17 23:15:07 christos Exp $");
 #endif /* not lint */
 
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/param.h>
+#ifdef __NetBSD__
 #include <sys/sysctl.h>
+#endif
 
 #include <err.h>
 #include <errno.h>



Home | Main Index | Thread Index | Old Index