[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] RFC PATCH: bring OpenBSD stdarg in line with FreeBSD one


  • To: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: Tim Deegan <tim@xxxxxxx>
  • Date: Thu, 19 Jan 2012 16:16:26 +0000
  • Delivery-date: Thu, 19 Jan 2012 16:17:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Having an absolute path in a #include confuses distcc's pump mode.
Since AFAICS OpenBSD's stdarg handling uses the builtins, I think we
should just treat it like we do NetBSD.

I don't have an OpenBSD box to test on, though. :(  Any OpenBSD
enthusiasts care to comment?

Tim.

diff --git a/xen/include/xen/stdarg.h b/xen/include/xen/stdarg.h
index 57e2c0e..cb870ac 100644
--- a/xen/include/xen/stdarg.h
+++ b/xen/include/xen/stdarg.h
@@ -1,9 +1,7 @@
 #ifndef __XEN_STDARG_H__
 #define __XEN_STDARG_H__
 
-#if defined(__OpenBSD__)
-#  include "/usr/include/stdarg.h"
-#elif defined (__NetBSD__)
+#if defined(__OpenBSD__) || 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)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.