Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mips/mips Only compile in sysctl_machdep_booted_ker...



details:   https://anonhg.NetBSD.org/src/rev/d81fb1bcbc88
branches:  trunk
changeset: 556042:d81fb1bcbc88
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sat Dec 06 15:20:04 2003 +0000

description:
Only compile in sysctl_machdep_booted_kernel() if __HAVE_BOOTINFO_H
is defined.

diffstat:

 sys/arch/mips/mips/mips_machdep.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 87b0ac95ae9a -r d81fb1bcbc88 sys/arch/mips/mips/mips_machdep.c
--- a/sys/arch/mips/mips/mips_machdep.c Sat Dec 06 15:16:38 2003 +0000
+++ b/sys/arch/mips/mips/mips_machdep.c Sat Dec 06 15:20:04 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: mips_machdep.c,v 1.171 2003/12/04 19:38:21 atatat Exp $        */
+/*     $NetBSD: mips_machdep.c,v 1.172 2003/12/06 15:20:04 simonb Exp $        */
 
 /*
  * Copyright 2002 Wasabi Systems, Inc.
@@ -119,7 +119,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.171 2003/12/04 19:38:21 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mips_machdep.c,v 1.172 2003/12/06 15:20:04 simonb Exp $");
 
 #include "opt_cputype.h"
 
@@ -1115,6 +1115,7 @@
        l->l_md.md_ss_addr = 0;
 }
 
+#ifdef __HAVE_BOOTINFO_H
 /*
  * Machine dependent system variables.
  */
@@ -1133,6 +1134,7 @@
        node.sysctl_size = sizeof(bibp->bootpath);
        return (sysctl_lookup(SYSCTLFN_CALL(&node)));
 }
+#endif
 
 SYSCTL_SETUP(sysctl_machdep_setup, "sysctl machdep subtree setup")
 {



Home | Main Index | Thread Index | Old Index