if _KERNEL is not defined, include <sys/stdarg.h> for va_list. For the

kernel (or modules) this is already done by systm.h.
This commit is contained in:
martin 2011-07-18 21:00:28 +00:00
parent ed24055289
commit 4821d7c4b4

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: openfirm.c,v 1.17 2011/07/17 20:54:47 joerg Exp $");
#include <machine/promlib.h>
#include <lib/libkern/libkern.h>
#ifndef _KERNEL
#include <sys/stdarg.h>
#endif
int
OF_peer(int phandle)
{