Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc if _KERNEL is not defined, include <sys...



details:   https://anonhg.NetBSD.org/src/rev/1e44a381c4ad
branches:  trunk
changeset: 767449:1e44a381c4ad
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jul 18 21:00:28 2011 +0000

description:
if _KERNEL is not defined, include <sys/stdarg.h> for va_list. For the
kernel (or modules) this is already done by systm.h.

diffstat:

 sys/arch/sparc/sparc/openfirm.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r e0063a30191b -r 1e44a381c4ad sys/arch/sparc/sparc/openfirm.c
--- a/sys/arch/sparc/sparc/openfirm.c   Mon Jul 18 20:24:18 2011 +0000
+++ b/sys/arch/sparc/sparc/openfirm.c   Mon Jul 18 21:00:28 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: openfirm.c,v 1.17 2011/07/17 20:54:47 joerg Exp $      */
+/*     $NetBSD: openfirm.c,v 1.18 2011/07/18 21:00:28 martin Exp $     */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.17 2011/07/17 20:54:47 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.18 2011/07/18 21:00:28 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -40,6 +40,10 @@
 #include <machine/promlib.h>
 #include <lib/libkern/libkern.h>
 
+#ifndef _KERNEL
+#include <sys/stdarg.h>
+#endif
+
 int
 OF_peer(int phandle)
 {



Home | Main Index | Thread Index | Old Index