__alpha__ != Digital Unix. Fix.
This commit is contained in:
parent
8230ed06cd
commit
cf96764051
1 changed files with 21 additions and 0 deletions
21
math/octave/patches/patch-af
Normal file
21
math/octave/patches/patch-af
Normal file
|
@ -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)
|
Loading…
Reference in a new issue