summaryrefslogtreecommitdiff
path: root/lang/f2c/patches
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2007-02-15 13:29:19 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2007-02-15 13:29:19 +0000
commitb03e325e08f4be707e82f1f18ed69f38257c184a (patch)
treed454866c7423861bb0fd761d482e35acc58ca5e0 /lang/f2c/patches
parent5ba7028ee49f704121a0b1f9edf28f815471b8bf (diff)
downloadpkgsrc-b03e325e08f4be707e82f1f18ed69f38257c184a.tar.gz
Add __sparcv9 to the list for 64-bit systems. Fixes compilation on
solaris in 64 bit mode. Patch from Gilles Dauphin.
Diffstat (limited to 'lang/f2c/patches')
-rw-r--r--lang/f2c/patches/patch-ai6
1 files changed, 3 insertions, 3 deletions
diff --git a/lang/f2c/patches/patch-ai b/lang/f2c/patches/patch-ai
index 9508cca8b13..f5d120a022a 100644
--- a/lang/f2c/patches/patch-ai
+++ b/lang/f2c/patches/patch-ai
@@ -1,4 +1,4 @@
-$NetBSD: patch-ai,v 1.4 2004/03/13 13:47:40 dmcmahill Exp $
+$NetBSD: patch-ai,v 1.5 2007/02/15 13:29:19 dmcmahill Exp $
required to make
sizeof(integer) == sizeof(real)
@@ -11,7 +11,7 @@ sizeof(logical) == sizeof(real)
@@ -8,5 +8,9 @@
#define F2C_INCLUDE
-+#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__)
++#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__sparcv9)
+typedef int integer;
+#else
typedef long int integer;
@@ -21,7 +21,7 @@ sizeof(logical) == sizeof(real)
@@ -16,5 +20,9 @@
typedef struct { real r, i; } complex;
typedef struct { doublereal r, i; } doublecomplex;
-+#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__)
++#if defined(__alpha__) || defined(__sparc64__) || defined(__x86_64__) || defined(__sparcv9)
+typedef int logical;
+#else
typedef long int logical;