From: Tim Deegan Subject: RFC PATCH: bring OpenBSD stdarg in line with FreeBSD one Date: Thu, 19 Jan 2012 16:16:26 +0000 Message-ID: <20120119161626.GO66164@ocelot.phlegethon.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org 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)