diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2017-03-02 21:33:24 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2017-03-03 00:39:27 -0800 |
commit | 97ff118c1e23c8929ddf45b6ff1253633fe13a91 (patch) | |
tree | 529e9ae8c6e9134346617ea127633c5aa6f91fea /debian/patches/ppc64_short_int.patch | |
parent | bf84b362688fdb19846d46e6b16e3b5439536a20 (diff) | |
download | scm-97ff118c1e23c8929ddf45b6ff1253633fe13a91.tar.gz scm-97ff118c1e23c8929ddf45b6ff1253633fe13a91.zip |
add patch for ppc64/ppc64el support (Closes: 476807)
Diffstat (limited to 'debian/patches/ppc64_short_int.patch')
-rw-r--r-- | debian/patches/ppc64_short_int.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/ppc64_short_int.patch b/debian/patches/ppc64_short_int.patch new file mode 100644 index 0000000..aca3ce2 --- /dev/null +++ b/debian/patches/ppc64_short_int.patch @@ -0,0 +1,33 @@ +Description: Fixes builds on ppc64 and ppc64el architectures. +Author: Fernando Seiti Furusato <ferseiti@br.ibm.com>, Andreas Jochens <aj@andaco.de> +Forwarded: no +--- a/scmfig.h ++++ b/scmfig.h +@@ -264,6 +264,10 @@ + # define SHORT_INT + # define CDR_DOUBLES + #endif ++#ifdef __powerpc64__ ++# define SHORT_INT ++# define CDR_DOUBLES ++#endif + #ifdef MSDOS /* Microsoft C 5.10 and 6.00A */ + # ifndef GO32 + # define SHORT_INT +@@ -393,14 +397,10 @@ + # define WHITE_SPACES ' ':case '\t':case '\r':case '\f' + #endif + +-#ifdef __ia64__ ++#if defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) + # define PTR2INT(x) ((long)(x)) + #else +-# ifdef __x86_64 +-# define PTR2INT(x) ((long)(x)) +-# else +-# define PTR2INT(x) ((int)(x)) +-# endif ++# define PTR2INT(x) ((int)(x)) + #endif + + /* Define BIGDIG to an integer type whose size is smaller than long if |