summaryrefslogtreecommitdiff
path: root/math/octave/patches/patch-af
blob: b7abdf9bc1a03de0802fd36703a0408d15e96e97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$NetBSD: patch-af,v 1.2 2000/04/28 08:59:37 wennmach Exp $
--- liboctave/lo-ieee.cc.orig	Wed Apr 26 20:14:02 2000
+++ liboctave/lo-ieee.cc	Wed Apr 26 20:18:16 2000
@@ -64,7 +64,7 @@
 #if defined (SCO)
   double tmp = 1.0;
   octave_Inf = 1.0 / (tmp - tmp);
-#elif defined (__alpha__) && ! defined (linux)
+#elif defined (__alpha__) && defined(__osf__)
   extern unsigned int DINFINITY[2];
   octave_Inf =  (*((double *) (DINFINITY)));
 #else
@@ -83,7 +83,7 @@
 
 #if defined (HAVE_ISNAN)
 
-#if defined (__alpha__) && ! defined (linux)
+#if defined (__alpha__) && defined(__osf__)
   extern unsigned int DQNAN[2];
   octave_NaN = (*((double *) (DQNAN)));
 #else