Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame^] | 1 | From f069b0a430fe96f3ece2106d34375008833599d3 Mon Sep 17 00:00:00 2001 |
| 2 | From: Nitin A Kamble <nitin.a.kamble@intel.com> |
| 3 | Date: Fri, 2 Dec 2011 12:20:05 -0800 |
| 4 | Subject: [PATCH] libxt: fix compilatoin with x32 toolchain |
| 5 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 6 | Upstream-Status: Pending |
| 7 | |
| 8 | This fixes compilation with x32 toolchain. |
| 9 | |
| 10 | Received this patch from H.J. Lu <hjl.tools@gmail.com> |
Patrick Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 11 | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> 2011/12/1 |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame^] | 13 | --- |
| 14 | include/X11/Xtos.h | 2 +- |
| 15 | 1 file changed, 1 insertion(+), 1 deletion(-) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | |
Brad Bishop | 96ff198 | 2019-08-19 13:50:42 -0400 | [diff] [blame^] | 17 | diff --git a/include/X11/Xtos.h b/include/X11/Xtos.h |
| 18 | index 64b2da8..44f52c2 100644 |
| 19 | --- a/include/X11/Xtos.h |
| 20 | +++ b/include/X11/Xtos.h |
| 21 | @@ -59,7 +59,7 @@ SOFTWARE. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 |