Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/arm32 Sprinkle #ifdef _KERNEL{,_OPT}



details:   https://anonhg.NetBSD.org/src/rev/1b0dbb2ecf88
branches:  trunk
changeset: 328190:1b0dbb2ecf88
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Mar 29 09:27:57 2014 +0000

description:
Sprinkle #ifdef _KERNEL{,_OPT}

diffstat:

 sys/arch/arm/arm32/db_machdep.c |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r ae78432262d1 -r 1b0dbb2ecf88 sys/arch/arm/arm32/db_machdep.c
--- a/sys/arch/arm/arm32/db_machdep.c   Sat Mar 29 05:07:25 2014 +0000
+++ b/sys/arch/arm/arm32/db_machdep.c   Sat Mar 29 09:27:57 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: db_machdep.c,v 1.19 2014/03/28 21:54:12 matt Exp $     */
+/*     $NetBSD: db_machdep.c,v 1.20 2014/03/29 09:27:57 skrll Exp $    */
 
 /*
  * Copyright (c) 1996 Mark Brinicombe
@@ -28,10 +28,12 @@
  * rights to redistribute these changes.
  */
 
+#ifdef _KERNEL_OPT
 #include "opt_multiprocessor.h"
+#endif
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.19 2014/03/28 21:54:12 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.20 2014/03/29 09:27:57 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/cpu.h>
@@ -49,6 +51,10 @@
 #include <ddb/db_command.h>
 #include <ddb/db_run.h>
 
+#ifndef _KERNEL
+#include <stddef.h>
+#endif
+
 #ifdef _KERNEL
 static long nil;
 



Home | Main Index | Thread Index | Old Index