mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
Clean up stdarg handling a little. Fix for NetBSD.
Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
1 parent
dc74142c5a
commit
6f338af1e1
4 files changed
+6
-3
No files matched your search
@@ -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>
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
#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
|
||||