Commit 2bdd9a60 authored by Keir Fraser's avatar Keir Fraser

Clean up stdarg handling a little. Fix for NetBSD.

Signed-off-by: default avatarKeir Fraser <keir@xen.org>
parent 5a3d0d77
......@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdarg.h>
#include "libelf-private.h"
/* ------------------------------------------------------------------------ */
......
......@@ -40,6 +40,7 @@
#else /* !__XEN__ */
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -16,7 +16,6 @@
* - scnprintf and vscnprintf
*/
#include <xen/stdarg.h>
#include <xen/ctype.h>
#include <xen/lib.h>
#include <asm/div64.h>
......
#if defined(__OpenBSD__)
# include "/usr/include/stdarg.h"
#elif defined (__NetBSD__)
typedef __builtin_va_list va_list;
# define va_start(ap, last) __builtin_stdarg_start((ap), (last))
# define va_end(ap) __builtin_va_end(ap)
# define va_arg __builtin_va_arg
#else
# include <stdarg.h>
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment