|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] Correct public header defines for Solaris/Sun CC
# HG changeset patch
# User john.levon@xxxxxxx
# Date 1186535034 25200
# Node ID 24eb50ea28dea351633c80f5c517ba92395cefc1
# Parent aa863231740cfe81aa13077dd61632713bfa32dc
Correct public header defines for Solaris/Sun CC
The Solaris environment only defines __i386, not __i386__.
Additionally, the assembler define used is _ASM. Accommodate both.
Signed-off-by: John Levon <john.levon@xxxxxxx>
diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h
--- a/xen/include/public/xen.h
+++ b/xen/include/public/xen.h
@@ -28,6 +28,18 @@
#define __XEN_PUBLIC_XEN_H__
#include "xen-compat.h"
+
+#if defined(__i386) && !defined(__i386__)
+#define __i386__
+#endif
+
+#if defined(__amd64) && !defined(__x86_64__)
+#define __x86_64__
+#endif
+
+#if defined(_ASM) && !defined(__ASSEMBLY__)
+#define __ASSEMBLY__
+#endif
#if defined(__i386__) || defined(__x86_64__)
#include "arch-x86/xen.h"
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [Xen-devel] [PATCH] Correct public header defines for Solaris/Sun CC,
john . levon <=
|
|
|
|
|