diff options
author | jdc <jdc> | 2015-02-07 19:53:41 +0000 |
---|---|---|
committer | jdc <jdc> | 2015-02-07 19:53:41 +0000 |
commit | aad91fffb1423c6f7c83804002248d51a543f4d3 (patch) | |
tree | 8788be333f1925764da2dc8ef1ac890c698428b6 /math | |
parent | f56e7f8c2acf4bfde5be92305d900149c196af8c (diff) | |
download | pkgsrc-aad91fffb1423c6f7c83804002248d51a543f4d3.tar.gz |
Allow this to compile on sparc64 (sent upstream).
Diffstat (limited to 'math')
-rw-r--r-- | math/cln/patches/patch-include_cln_types.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/math/cln/patches/patch-include_cln_types.h b/math/cln/patches/patch-include_cln_types.h new file mode 100644 index 00000000000..cd3a4fe4e88 --- /dev/null +++ b/math/cln/patches/patch-include_cln_types.h @@ -0,0 +1,40 @@ +$NetBSD: patch-include_cln_types.h,v 1.1 2015/02/07 19:53:41 jdc Exp $ + +--- include/cln/types.h.orig 2015-02-07 18:09:17.000000000 +0000 ++++ include/cln/types.h 2015-02-07 18:43:34.000000000 +0000 +@@ -48,7 +48,7 @@ + #undef HAVE_LONGLONG + #endif + #endif +- #if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__x86_64__)) ++ #if defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__mips64__) || defined(__powerpc64__) || defined(__x86_64__) || defined(__sparc64__)) + // 64 bit registers in hardware + #define HAVE_FAST_LONGLONG + #endif +@@ -76,7 +76,7 @@ + + // Integer type used for counters. + // Constraint: sizeof(uintC) >= sizeof(uintL) +- #if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__))) ++ #if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) || defined(__sparc64__))) + #define intCsize long_bitsize + typedef long sintC; + typedef unsigned long uintC; +@@ -88,7 +88,7 @@ + + // Integer type used for lfloat exponents. + // Constraint: sizeof(uintE) >= sizeof(uintC) +-#if (defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) || defined(__i386__) || defined(__mips__) || defined(__rs6000__))) ++#if (defined(HAVE_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) || defined(__i386__) || defined(__mips__) || defined(__rs6000__) || defined(__sparc64__))) + #define intEsize 64 + typedef sint64 sintE; + typedef uint64 uintE; +@@ -127,7 +127,7 @@ + typedef int sintD; + typedef unsigned int uintD; + #else // we are not using GMP, so just guess something reasonable +- #if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) || defined(__sparc64))) ++ #if (defined(HAVE_FAST_LONGLONG) && (defined(__alpha__) || defined(__ia64__) || defined(__powerpc64__) || defined(__x86_64__) || defined(__sparc64__))) + #define intDsize 64 + typedef sint64 sintD; + typedef uint64 uintD; |