Module Name:    src
Committed By:   martin
Date:           Mon Jul 18 21:00:28 UTC 2011

Modified Files:
        src/sys/arch/sparc/sparc: openfirm.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/arch/sparc/sparc/openfirm.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/arch/sparc/sparc/openfirm.c
diff -u src/sys/arch/sparc/sparc/openfirm.c:1.17 src/sys/arch/sparc/sparc/openfirm.c:1.18
--- src/sys/arch/sparc/sparc/openfirm.c:1.17	Sun Jul 17 20:54:47 2011
+++ src/sys/arch/sparc/sparc/openfirm.c	Mon Jul 18 21:00:28 2011
@@ -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)
 {

Reply via email to