From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Christoph Egger" Subject: [PATCH] xen: OpenBSD build fix Date: Wed, 24 Oct 2007 17:24:29 +0200 Message-ID: <200710241724.29835.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary-00=_tO2HHd8oAMSW/Hy" Return-path: 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@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --Boundary-00=_tO2HHd8oAMSW/Hy Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi! Directly including a libc header does not work on OpenBSD because of=20 the -nostdinc option. Attached patch fixes build problem for stdbool.h analogous to stdarg.h. Signed-off-by: Christoph Egger =2D-=20 AMD Saxony, Dresden, Germany Operating System Research Center Legal Information: AMD Saxony Limited Liability Company & Co. KG Sitz (Gesch=E4ftsanschrift): Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland Registergericht Dresden: HRA 4896 vertretungsberechtigter Komplement=E4r: AMD Saxony LLC (Sitz Wilmington, Delaware, USA) Gesch=E4ftsf=FChrer der AMD Saxony LLC: Dr. Hans-R. Deppe, Thomas McCoy --Boundary-00=_tO2HHd8oAMSW/Hy Content-Type: text/plain; charset=us-ascii; name=xen_stdbool.diff Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=xen_stdbool.diff diff -r b28ae5f00553 xen/arch/x86/hvm/mtrr.c --- a/xen/arch/x86/hvm/mtrr.c Tue Oct 23 09:26:43 2007 +0100 +++ b/xen/arch/x86/hvm/mtrr.c Wed Oct 24 15:33:06 2007 +0200 @@ -23,7 +23,7 @@ #include #include #include -#include +#include #include #include diff -r b28ae5f00553 xen/arch/x86/hvm/vmx/vmx.c --- a/xen/arch/x86/hvm/vmx/vmx.c Tue Oct 23 09:26:43 2007 +0100 +++ b/xen/arch/x86/hvm/vmx/vmx.c Wed Oct 24 15:33:40 2007 +0200 @@ -50,7 +50,7 @@ #include #include #include -#include +#include enum handler_return { HNDL_done, HNDL_unhandled, HNDL_exception_raised }; diff -r b28ae5f00553 xen/include/xen/stdbool.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/xen/include/xen/stdbool.h Wed Oct 24 15:22:28 2007 +0200 @@ -0,0 +1,6 @@ +#if defined(__OpenBSD__) +# include "/usr/include/stdbool.h" +#else +# include +#endif + --Boundary-00=_tO2HHd8oAMSW/Hy Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_tO2HHd8oAMSW/Hy--