diff options
Diffstat (limited to 'x11-proto/xproto/files/xproto-7.0.23-Xmd_h_x32.patch')
-rw-r--r-- | x11-proto/xproto/files/xproto-7.0.23-Xmd_h_x32.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/x11-proto/xproto/files/xproto-7.0.23-Xmd_h_x32.patch b/x11-proto/xproto/files/xproto-7.0.23-Xmd_h_x32.patch new file mode 100644 index 000000000000..f141c79befff --- /dev/null +++ b/x11-proto/xproto/files/xproto-7.0.23-Xmd_h_x32.patch @@ -0,0 +1,34 @@ +From a06fa7fc98b66652df8bbc4734b5010d43744373 Mon Sep 17 00:00:00 2001 +From: Sergei Trofimovich <slyfox@gentoo.org> +Date: Tue, 20 Dec 2011 13:43:44 +0000 +Subject: Xmd.h: Treat __ILP32__ targets as LONG32 ones + +amd64-x32 ABI defines sizeof(long) == sizeof (void*) == 4 + +Noticed on build failure of libXmu: + libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c: In function '_XEditresGetStringValues': + libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c:2198:6: error: duplicate case value + libXmu-1.1.0/work/libXmu-1.1.0/src/EditresCom.c:2194:6: error: previously used here + +More info about x32: https://sites.google.com/site/x32abi/ + +Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org> +Signed-off-by: James Cloos <cloos@jhcloos.com> +--- +diff --git a/Xmd.h b/Xmd.h +index f3868b3..96cc08f 100644 +--- a/Xmd.h ++++ b/Xmd.h +@@ -64,7 +64,9 @@ SOFTWARE. + defined(__s390x__) || \ + defined(__amd64__) || defined(amd64) || \ + defined(__powerpc64__) +-# define LONG64 /* 32/64-bit architecture */ ++# if !defined(__ILP32__) /* amd64-x32 is 32bit */ ++# define LONG64 /* 32/64-bit architecture */ ++# endif /* !__ILP32__ */ + # endif + + /* +-- +cgit v0.9.0.2-2-gbebe |