summaryrefslogtreecommitdiff
path: root/math/octave
diff options
context:
space:
mode:
authorgarbled <garbled>1999-01-01 08:12:17 +0000
committergarbled <garbled>1999-01-01 08:12:17 +0000
commit461c56c33b10d1a201a474ac750bd8875c55ad82 (patch)
treeade04b55b38f6632f8ad7129ec370448ea67c9ef /math/octave
parente40d41ce951746ca4a117f3fe58070cce1df0d5a (diff)
downloadpkgsrc-461c56c33b10d1a201a474ac750bd8875c55ad82.tar.gz
__alpha__ != Digital Unix. Fix.
Diffstat (limited to 'math/octave')
-rw-r--r--math/octave/patches/patch-af21
1 files changed, 21 insertions, 0 deletions
diff --git a/math/octave/patches/patch-af b/math/octave/patches/patch-af
new file mode 100644
index 00000000000..6855709737d
--- /dev/null
+++ b/math/octave/patches/patch-af
@@ -0,0 +1,21 @@
+$NetBSD: patch-af,v 1.1 1999/01/01 08:12:17 garbled Exp $
+--- liboctave/lo-ieee.cc.orig Fri Jan 1 01:02:37 1999
++++ liboctave/lo-ieee.cc Fri Jan 1 01:07:38 1999
+@@ -70,7 +70,7 @@
+ octave_Inf = 1.0 / (tmp - tmp);
+ #elif defined (linux)
+ octave_Inf = HUGE_VAL;
+-#elif defined (__alpha__)
++#elif defined (__alpha__) && defined(__osf__)
+ extern unsigned int DINFINITY[2];
+ octave_Inf = (*((double *) (DINFINITY)));
+ #elif defined (HAVE_INFINITY)
+@@ -93,7 +93,7 @@
+
+ #if defined (linux)
+ octave_NaN = NAN;
+-#elif defined (__alpha__)
++#elif defined (__alpha__) && defined (__osf__)
+ extern unsigned int DQNAN[2];
+ octave_NaN = (*((double *) (DQNAN)));
+ #elif defined (HAVE_QUIET_NAN)