Source-Changes-HG archive

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

[src/trunk]: src/sys/kern Fix previous. We define _KERNEL for rump in opt_rum...



details:   https://anonhg.NetBSD.org/src/rev/7d904be4321b
branches:  trunk
changeset: 998079:7d904be4321b
user:      rin <rin%NetBSD.org@localhost>
date:      Sun Apr 07 02:58:02 2019 +0000

description:
Fix previous. We define _KERNEL for rump in opt_rumpkernel.h.

XXX This works because arch's with _RUMP_NATIVEABI=yes and therefore
XXX without _RUMPKERNEL (amd64 and i386) do not have their own
XXX setdisklabel(9). We may need another macro, e.g., _RUMP.

diffstat:

 sys/kern/subr_disklabel.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r bd8ec4936e49 -r 7d904be4321b sys/kern/subr_disklabel.c
--- a/sys/kern/subr_disklabel.c Sun Apr 07 02:08:08 2019 +0000
+++ b/sys/kern/subr_disklabel.c Sun Apr 07 02:58:02 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_disklabel.c,v 1.2 2019/04/05 01:10:32 christos Exp $      */
+/*     $NetBSD: subr_disklabel.c,v 1.3 2019/04/07 02:58:02 rin Exp $   */
 
 /*
  * Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -32,13 +32,13 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_disklabel.c,v 1.2 2019/04/05 01:10:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disklabel.c,v 1.3 2019/04/07 02:58:02 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/disklabel.h>
 
-#if !defined(__HAVE_SETDISKLABEL) || !defined(_KERNEL)
+#if !defined(__HAVE_SETDISKLABEL) || defined(_RUMPKERNEL)
 
 #ifdef DEBUG
 #define DPRINTF(a, ...) printf(a, ##__VA_ARGS__)



Home | Main Index | Thread Index | Old Index