Module Name:    src
Committed By:   christos
Date:           Fri Apr  5 01:10:32 UTC 2019

Modified Files:
        src/sys/kern: subr_disklabel.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/kern/subr_disklabel.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/kern/subr_disklabel.c
diff -u src/sys/kern/subr_disklabel.c:1.1 src/sys/kern/subr_disklabel.c:1.2
--- src/sys/kern/subr_disklabel.c:1.1	Thu Apr  4 16:19:07 2019
+++ src/sys/kern/subr_disklabel.c	Thu Apr  4 21:10:32 2019
@@ -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__)

Reply via email to