WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Correct public header defines for Solaris/Sun CC

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Correct public header defines for Solaris/Sun CC
From: john.levon@xxxxxxx
Date: Wed, 08 Aug 2007 11:04:20 -0700
Delivery-date: Wed, 08 Aug 2007 11:01:43 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
# 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>