[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Clean up stdarg handling a little. Fix for NetBSD.
# HG changeset patch # User Keir Fraser <keir@xxxxxxx> # Date 1306507764 -3600 # Node ID 14eb8e1fcd828e4610df05e5d781e5f9693fd65c # Parent fc963f9f2808484c8c2d39146754d217873f3b41 Clean up stdarg handling a little. Fix for NetBSD. Signed-off-by: Keir Fraser <keir@xxxxxxx> --- diff -r fc963f9f2808 -r 14eb8e1fcd82 xen/common/libelf/libelf-loader.c --- a/xen/common/libelf/libelf-loader.c Fri May 27 08:56:47 2011 +0100 +++ b/xen/common/libelf/libelf-loader.c Fri May 27 15:49:24 2011 +0100 @@ -16,8 +16,6 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include <stdarg.h> - #include "libelf-private.h" /* ------------------------------------------------------------------------ */ diff -r fc963f9f2808 -r 14eb8e1fcd82 xen/common/libelf/libelf-private.h --- a/xen/common/libelf/libelf-private.h Fri May 27 08:56:47 2011 +0100 +++ b/xen/common/libelf/libelf-private.h Fri May 27 15:49:24 2011 +0100 @@ -40,6 +40,7 @@ #else /* !__XEN__ */ +#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff -r fc963f9f2808 -r 14eb8e1fcd82 xen/common/vsprintf.c --- a/xen/common/vsprintf.c Fri May 27 08:56:47 2011 +0100 +++ b/xen/common/vsprintf.c Fri May 27 15:49:24 2011 +0100 @@ -16,7 +16,6 @@ * - scnprintf and vscnprintf */ -#include <xen/stdarg.h> #include <xen/ctype.h> #include <xen/lib.h> #include <asm/div64.h> diff -r fc963f9f2808 -r 14eb8e1fcd82 xen/include/xen/stdarg.h --- a/xen/include/xen/stdarg.h Fri May 27 08:56:47 2011 +0100 +++ b/xen/include/xen/stdarg.h Fri May 27 15:49:24 2011 +0100 @@ -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 _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |