summaryrefslogtreecommitdiff
path: root/misc/celestia/patches/patch-ab
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2011-11-25 22:08:29 +0000
committerjoerg <joerg@pkgsrc.org>2011-11-25 22:08:29 +0000
commit9eb08dfce720f65f2cccd4e9fb7d66367bdb038b (patch)
tree2f725f0160aa2c402255331946c0de278ad9c9c3 /misc/celestia/patches/patch-ab
parent59262b767c82915597d8215f76a1f374d6676f61 (diff)
downloadpkgsrc-9eb08dfce720f65f2cccd4e9fb7d66367bdb038b.tar.gz
Fix build with newer GCC
Diffstat (limited to 'misc/celestia/patches/patch-ab')
-rw-r--r--misc/celestia/patches/patch-ab17
1 files changed, 14 insertions, 3 deletions
diff --git a/misc/celestia/patches/patch-ab b/misc/celestia/patches/patch-ab
index d25d0fe14e8..c2c7bbb46bc 100644
--- a/misc/celestia/patches/patch-ab
+++ b/misc/celestia/patches/patch-ab
@@ -1,8 +1,19 @@
-$NetBSD: patch-ab,v 1.4 2006/03/25 18:10:09 joerg Exp $
+$NetBSD: patch-ab,v 1.5 2011/11/25 22:08:30 joerg Exp $
---- src/celutil/formatnum.cpp.orig 2006-03-25 18:04:47.000000000 +0000
+--- src/celutil/formatnum.cpp.orig 2006-02-13 14:33:02.000000000 +0000
+++ src/celutil/formatnum.cpp
-@@ -60,9 +60,9 @@ std::ostream& operator<<(std::ostream& o
+@@ -7,8 +7,10 @@
+ // as published by the Free Software Foundation; either version 2
+ // of the License, or (at your option) any later version.
+
++#include <climits>
+ #include <cmath>
+ #include <cstdio>
++#include <cstring>
+ #include <string>
+ #include "formatnum.h"
+
+@@ -60,9 +62,9 @@ std::ostream& operator<<(std::ostream& o
char buf[32];
char obuf[64];
double value = num.getRoundedValue();