summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-11-24 13:49:57 +0000
committerjoerg <joerg@pkgsrc.org>2011-11-24 13:49:57 +0000
commit20f0bfddf53bb44be63849e5678de88f035c030b (patch)
tree0459e63a22ac93872c2b80be8d3dfd0b196cffbb /math
parent1a1f3e3226ef92cdf26a54b1ecc687d2e54f94fa (diff)
downloadpkgsrc-20f0bfddf53bb44be63849e5678de88f035c030b.tar.gz
Fix build with newer GCC
Diffstat (limited to 'math')
-rw-r--r--math/tochnog/distinfo3
-rw-r--r--math/tochnog/patches/patch-tochnog.h34
2 files changed, 36 insertions, 1 deletions
diff --git a/math/tochnog/distinfo b/math/tochnog/distinfo
index 3da79d61438..9f3c2c5cf9b 100644
--- a/math/tochnog/distinfo
+++ b/math/tochnog/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.5 2005/02/23 12:06:58 agc Exp $
+$NetBSD: distinfo,v 1.6 2011/11/24 13:50:50 joerg Exp $
SHA1 (tochnog-20010429/tn.tar.gz) = a4628df82573b5b9ebf5deeb9f32c6068cff5fed
RMD160 (tochnog-20010429/tn.tar.gz) = 4635de1f9f8f279c7950fb7897081461c170be3f
@@ -11,3 +11,4 @@ RMD160 (tochnog-20010429/tnp.ps.gz) = f68b3a7d4ea8dc1f5597c3f13dcf2aec8a4a0a36
Size (tochnog-20010429/tnp.ps.gz) = 41836 bytes
SHA1 (patch-aa) = 5ab191726552c8d7b44a3d3649099e5ab9f6f0b7
SHA1 (patch-ab) = e90269af74181a3ce4be670b83ac07ff7e1a7c94
+SHA1 (patch-tochnog.h) = 10be07e09b062293158b920d39c633a54a5a7581
diff --git a/math/tochnog/patches/patch-tochnog.h b/math/tochnog/patches/patch-tochnog.h
new file mode 100644
index 00000000000..348cbe77923
--- /dev/null
+++ b/math/tochnog/patches/patch-tochnog.h
@@ -0,0 +1,34 @@
+$NetBSD: patch-tochnog.h,v 1.1 2011/11/24 13:50:50 joerg Exp $
+
+--- tochnog.h.orig 2011-11-22 18:27:38.000000000 +0000
++++ tochnog.h
+@@ -17,22 +17,26 @@
+ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+-#include <iostream.h>
+ #include <assert.h>
+ #include <ctype.h>
+ #include <float.h>
+-#include <fstream.h>
+-#include <iomanip.h>
+ #include <math.h>
+ #include <limits.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+ #include <time.h>
++
++#include <iostream>
++#include <fstream>
++#include <iomanip>
++
+ #include "tnpetsc.h"
+ #include "tnsuplu.h"
+ #include "tnhypo.h"
+
++using namespace std;
++
+ typedef long int integer;
+ typedef double doublereal;
+