xen: OpenBSD build fix
PATCH 1/1 xen: OpenBSD build fix
Hi!
Directly including a libc header does not work on OpenBSD because of the -nostdinc option.
Attached patch fixes build problem for stdbool.h analogous to stdarg.h.
Signed-off-by Christoph Egger <[email protected]>
Signature · 12 lines
AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Geschäftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplementär: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Geschäftsführer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy
xen/arch/x86/hvm/mtrr.c +1 -1
@@ -23,7 +23,7 @@#include <asm/paging.h> #include <asm/p2m.h> #include <xen/domain_page.h> -#include <stdbool.h> +#include <xen/stdbool.h> #include <asm/mtrr.h> #include <asm/hvm/support.h>
xen/arch/x86/hvm/vmx/vmx.c +1 -1
@@ -50,7 +50,7 @@#include <asm/hvm/vpt.h> #include <public/hvm/save.h> #include <asm/hvm/trace.h> -#include <stdbool.h> +#include <xen/stdbool.h> enum handler_return { HNDL_done, HNDL_unhandled, HNDL_exception_raised };
xen/include/xen/stdbool.h new file +6 -0
@@ -0,0 +1,6 @@ +#if defined(__OpenBSD__) +# include "/usr/include/stdbool.h" +#else +# include <stdbool.h> +#endif +
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel