xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* RFC PATCH: bring OpenBSD stdarg in line with FreeBSD one
@ 2012-01-19 16:16 Tim Deegan
  2012-01-26 15:45 ` Tim Deegan
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Deegan @ 2012-01-19 16:16 UTC (permalink / raw)
  To: xen-devel

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)

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-01-27 10:26 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-19 16:16 RFC PATCH: bring OpenBSD stdarg in line with FreeBSD one Tim Deegan
2012-01-26 15:45 ` Tim Deegan
2012-01-27 10:09   ` Christoph Egger
2012-01-27 10:26     ` Tim Deegan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).