Add support for OpenBSD
PATCH 2/3 Add support for OpenBSD
Hi!
The second patch handles the case of a missing stdarg.h header. John Levon told me, he needs this patch for Solaris, too. The patch contains the modification for Solaris from John Levon.
Christoph
xen/common/vsprintf.c +1 -1
@@ -16,7 +16,7 @@* - scnprintf and vscnprintf */ -#include <stdarg.h> +#include <xen/stdarg.h> #include <xen/ctype.h> #include <xen/lib.h> #include <asm/div64.h>
xen/drivers/char/console.c +1 -1
@@ -6,7 +6,7 @@* Copyright (c) 2002-2004, K A Fraser. */ -#include <stdarg.h> +#include <xen/stdarg.h> #include <xen/config.h> #include <xen/version.h> #include <xen/init.h>
xen/include/xen/lib.h +1 -1
@@ -2,7 +2,7 @@#define __LIB_H__#include <xen/inttypes.h> -#include <stdarg.h> +#include <xen/stdarg.h> #include <xen/config.h> #include <xen/types.h> #include <xen/xmalloc.h>
xen/include/xen/stdarg.h new file +10 -0
@@ -0,0 +1,10 @@ + + +#if defined(__OpenBSD__) || (__sun__) +# include "/usr/include/stdarg.h" +#elif defined(__linux__) +# include <stdarg.h> +#else +# error Tell me where stdarg.h is on your OS +#endif +
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel