From: "Christoph Egger" <Christoph.Egger@amd.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] xen: OpenBSD build fix
Date: Wed, 24 Oct 2007 17:24:29 +0200 [thread overview]
Message-ID: <200710241724.29835.Christoph.Egger@amd.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 661 bytes --]
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 <Christoph.Egger@amd.com>
--
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
[-- Attachment #2: xen_stdbool.diff --]
[-- Type: text/plain, Size: 1045 bytes --]
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 <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>
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 <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 };
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 <stdbool.h>
+#endif
+
[-- Attachment #3: Type: text/plain, Size: 138 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
reply other threads:[~2007-10-24 15:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200710241724.29835.Christoph.Egger@amd.com \
--to=christoph.egger@amd.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.