1From f069b0a430fe96f3ece2106d34375008833599d3 Mon Sep 17 00:00:00 2001
2From: Nitin A Kamble <nitin.a.kamble@intel.com>
3Date: Fri, 2 Dec 2011 12:20:05 -0800
4Subject: [PATCH] libxt: fix compilatoin with x32 toolchain
5
6Upstream-Status: Pending
7
8This fixes compilation with x32 toolchain.
9
10Received this patch from H.J. Lu <hjl.tools@gmail.com>
11Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/1
12
13---
14 include/X11/Xtos.h | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/include/X11/Xtos.h b/include/X11/Xtos.h
18index 64b2da8..44f52c2 100644
19--- a/include/X11/Xtos.h
20+++ b/include/X11/Xtos.h
21@@ -59,7 +59,7 @@ SOFTWARE.
22     defined(__sparc64__) || \
23     defined(__s390x__) || \
24     (defined(__hppa__) && defined(__LP64__)) || \
25-    defined(__amd64__) || defined(amd64) || \
26+    ((defined(__amd64__) || defined(amd64)) && defined(__LP64__)) || \
27     defined(__powerpc64__) || \
28     (defined(sgi) && (_MIPS_SZLONG == 64))
29 #define LONG64
30