workaround for kernel/debug.h that causes <ansi.h> to be included in mpx.S
indirectly.
#define _POSIX_SOURCE 1
#endif
+/* What is a va_list? */
+#include <stdarg.h>
+#define _BSD_VA_LIST_ va_list
+
#endif /* ANSI_H */
#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
* 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>
strings.h
*/
+#include <ansi.h>
+
/* Open Group Base Specifications Issue 6 (not complete) */
_PROTOTYPE( char *index, (const char *_s, int _charwanted) );
_PROTOTYPE( int strcasecmp, (const char *_s1, const char *_s2) );
#include <pwd.h>
#include <termios.h>
#include <utmp.h>
+#include <ansi.h>
#ifdef _BSD_TIME_T_
typedef _BSD_TIME_T_ time_t;
* other kernel headers.
*/
+#ifndef __ASSEMBLY__
#include <ansi.h>
#include <minix/debug.h>
#include "config.h"
+#endif
/* Enable prints such as
* . send/receive failed due to deadlock or dead source or dead destination