Clean up stdarg handling a little. Fix for NetBSD.

Signed-off-by: Keir Fraser <keir@xen.org>
This commit is contained in:
Keir Fraser committed 2011-05-27 15:49:24 +01:00
1 parent dc74142c5a
commit 6f338af1e1
4 files changed
+6 -3

No files matched your search

-2
View File
@@ -16,8 +16,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include <stdarg.h>
#include "libelf-private.h"
/* ------------------------------------------------------------------------ */
+1
View File
@@ -40,6 +40,7 @@
#else /* !__XEN__ */
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-1
View File
@@ -16,7 +16,6 @@
* - scnprintf and vscnprintf
*/
#include <xen/stdarg.h>
#include <xen/ctype.h>
#include <xen/lib.h>
#include <asm/div64.h>
+5
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.