Source-Changes-HG archive

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

[src/trunk]: src/sys/kern we need it for non-kernel builds (rump)



details:   https://anonhg.NetBSD.org/src/rev/72ade588eabf
branches:  trunk
changeset: 455513:72ade588eabf
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 05 01:10:32 2019 +0000

description:
we need it for non-kernel builds (rump)

diffstat:

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

diffs (25 lines):

diff -r e2790689a08d -r 72ade588eabf sys/kern/subr_disklabel.c
--- a/sys/kern/subr_disklabel.c Fri Apr 05 01:09:33 2019 +0000
+++ b/sys/kern/subr_disklabel.c Fri Apr 05 01:10:32 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_disklabel.c,v 1.1 2019/04/04 20:19:07 christos Exp $      */
+/*     $NetBSD: subr_disklabel.c,v 1.2 2019/04/05 01:10:32 christos 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.1 2019/04/04 20:19:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disklabel.c,v 1.2 2019/04/05 01:10:32 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/disklabel.h>
 
-#ifndef __HAVE_SETDISKLABEL
+#if !defined(__HAVE_SETDISKLABEL) || !defined(_KERNEL)
 
 #ifdef DEBUG
 #define DPRINTF(a, ...) printf(a, ##__VA_ARGS__)



Home | Main Index | Thread Index | Old Index