$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" {
