Skip to contentSkip to conversation

xen: OpenBSD build fix

PATCH New Christoph Egger 1 participant 1 message Oct 24, 2007

lore
Share & tools
lore
#0 lore raw

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.

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
diff -r b28ae5f00553 xen/arch/x86/hvm/mtrr.c
@@ -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
diff -r b28ae5f00553 xen/arch/x86/hvm/vmx/vmx.c
@@ -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
diff -r b28ae5f00553 xen/include/xen/stdbool.h
@@ -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