include - minor compile fixes (including <ansi.h> in files that use it)

workaround for kernel/debug.h that causes <ansi.h> to be included in mpx.S
indirectly.
This commit is contained in:
Ben Gras
2010-09-15 08:47:10 +00:00
parent 354da24f5b
commit 2065c9982b
5 changed files with 12 additions and 4 deletions
+3 -4
View File
@@ -34,10 +34,6 @@
#ifndef _ERR_H_
#define _ERR_H_
#ifdef __minix
#define _BSD_VA_LIST_ va_list
#include <stdarg.h>
#else
/*
* Don't use va_list in the err/warn prototypes. Va_list is typedef'd in two
* places (<machine/varargs.h> and <machine/stdarg.h>), so if we include one
@@ -45,6 +41,9 @@
* for utilities to have to include one of them to include err.h, so we get
* _BSD_VA_LIST_ from <machine/ansi.h> and use it.
*/
#ifdef __minix
#include <ansi.h>
#else
#include <machine/ansi.h>
#endif
#include <sys/cdefs.h>