WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [xen-unstable] Clean up stdarg handling a little. Fix fo

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] Clean up stdarg handling a little. Fix for NetBSD.
From: Xen patchbot-unstable <patchbot@xxxxxxx>
Date: Thu, 16 Jun 2011 11:12:04 +0100
Delivery-date: Thu, 16 Jun 2011 03:20:41 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] Clean up stdarg handling a little. Fix for NetBSD., Xen patchbot-unstable <=