diff options
Diffstat (limited to 'debian/patches/sword-ppc64.patch')
-rw-r--r-- | debian/patches/sword-ppc64.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/sword-ppc64.patch b/debian/patches/sword-ppc64.patch new file mode 100644 index 0000000..4fc1cf5 --- /dev/null +++ b/debian/patches/sword-ppc64.patch @@ -0,0 +1,24 @@ +Description: fix Type definition conflict with asm/types.h for ppc64 +Author: Fernando Seiti Furusato <ferseiti@br.ibm.com> + +Index: sword-1.7.3+dfsg/include/sysdata.h +=================================================================== +--- sword-1.7.3+dfsg.orig/include/sysdata.h ++++ sword-1.7.3+dfsg/include/sysdata.h +@@ -40,12 +40,15 @@ typedef unsigned short __u16; + typedef signed int __s32; + typedef unsigned int __u32; + +-#ifdef __GNUC__ ++#if defined(__GNUC__) && !defined(__powerpc64__) + __extension__ typedef __signed__ long long __s64; + __extension__ typedef unsigned long long __u64; + #elif defined(__BORLANDC__) + typedef signed __int64 __s64; + typedef unsigned __int64 __u64; ++#elif defined(__powerpc64__) ++typedef __signed__ long __s64; ++typedef unsigned long __u64; + #else + typedef signed long long __s64; + typedef unsigned long long __u64; |