summaryrefslogtreecommitdiff
path: root/textproc/isearch/patches/patch-src_nlist.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/isearch/patches/patch-src_nlist.cxx')
-rw-r--r--textproc/isearch/patches/patch-src_nlist.cxx24
1 files changed, 24 insertions, 0 deletions
diff --git a/textproc/isearch/patches/patch-src_nlist.cxx b/textproc/isearch/patches/patch-src_nlist.cxx
new file mode 100644
index 00000000000..2f45ffa9e70
--- /dev/null
+++ b/textproc/isearch/patches/patch-src_nlist.cxx
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_nlist.cxx,v 1.1 2012/12/21 10:29:47 dholland Exp $
+
+Chase after the C++ standard:
+ - use the newfangled names for C++ headers
+ - open the std namespace instead of using explicit "std" qualification
+
+--- src/nlist.cxx~ 2000-02-04 23:39:56.000000000 +0000
++++ src/nlist.cxx
+@@ -44,11 +44,13 @@ Description: Class NUMERICLIST
+ Author: Jim Fullton, Jim.Fullton@cnidr.org
+ @@@*/
+
+-#include <stdlib.h>
+-#include <iostream.h>
++#include <cstdlib>
++#include <iostream>
+
+ #include "nlist.hxx"
+
++using namespace std;
++
+ static INT
+ SortCmp(const void* x, const void* y);
+