summaryrefslogtreecommitdiff
path: root/math/octave-current/patches/patch-ab
blob: 0cb2a48828d2aedc9604308375be33b1b4467ae6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.7 2007/12/15 05:54:50 adam Exp $

--- src/DLD-FUNCTIONS/__glpk__.cc.orig	2007-10-12 23:27:34.000000000 +0200
+++ src/DLD-FUNCTIONS/__glpk__.cc
@@ -25,6 +25,7 @@ along with Octave; see the file COPYING.
 #endif
 
 #include <cfloat>
+#include <cmath>
 #include <csetjmp>
 #include <ctime>
 
@@ -35,6 +36,10 @@ along with Octave; see the file COPYING.
 #include "oct-obj.h"
 #include "pager.h"
 
+#if defined(_GLIBCXX_USE_C99_MATH) && !defined(_GLIBCXX_USE_C99_FP_MACROS_DYNAMIC)
+using std::isinf;
+#endif
+
 #if defined (HAVE_GLPK)
 
 extern "C"