summaryrefslogtreecommitdiff
path: root/math/octave-current/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'math/octave-current/patches/patch-ab')
-rw-r--r--math/octave-current/patches/patch-ab23
1 files changed, 23 insertions, 0 deletions
diff --git a/math/octave-current/patches/patch-ab b/math/octave-current/patches/patch-ab
new file mode 100644
index 00000000000..82619376c98
--- /dev/null
+++ b/math/octave-current/patches/patch-ab
@@ -0,0 +1,23 @@
+$NetBSD: patch-ab,v 1.5 2005/12/08 14:35:01 joerg Exp $
+
+--- src/DLD-FUNCTIONS/__glpk__.cc.orig 2005-05-18 12:21:01.000000000 +0000
++++ src/DLD-FUNCTIONS/__glpk__.cc
+@@ -26,6 +26,7 @@ Software Foundation, Inc., 51 Franklin S
+ #endif
+
+ #include <cfloat>
++#include <cmath>
+ #include <csetjmp>
+ #include <ctime>
+
+@@ -36,6 +37,10 @@ Software Foundation, Inc., 51 Franklin S
+ #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" {