summaryrefslogtreecommitdiff
path: root/misc/celestia/patches
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-03-25 18:10:08 +0000
committerjoerg <joerg@pkgsrc.org>2006-03-25 18:10:08 +0000
commit636c2ba036655a0b4a0fe03c7039b2595bfb1e8d (patch)
treedfd77fef5b8f57f35a508da114250e6b22e95018 /misc/celestia/patches
parent8b83e2ad26daffcdc28532417bd7f9b4885db7f3 (diff)
downloadpkgsrc-636c2ba036655a0b4a0fe03c7039b2595bfb1e8d.tar.gz
Sprinkle some const. Helps on DragonFly, but wordexp is still an issue.
Diffstat (limited to 'misc/celestia/patches')
-rw-r--r--misc/celestia/patches/patch-ab17
1 files changed, 17 insertions, 0 deletions
diff --git a/misc/celestia/patches/patch-ab b/misc/celestia/patches/patch-ab
new file mode 100644
index 00000000000..d25d0fe14e8
--- /dev/null
+++ b/misc/celestia/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.4 2006/03/25 18:10:09 joerg Exp $
+
+--- src/celutil/formatnum.cpp.orig 2006-03-25 18:04:47.000000000 +0000
++++ src/celutil/formatnum.cpp
+@@ -60,9 +60,9 @@ std::ostream& operator<<(std::ostream& o
+ char buf[32];
+ char obuf[64];
+ double value = num.getRoundedValue();
+- char *decimal_point = localeconv()->decimal_point;
+- char *thousands_sep = localeconv()->thousands_sep;
+- char *grouping = localeconv()->grouping;
++ const char *decimal_point = localeconv()->decimal_point;
++ const char *thousands_sep = localeconv()->thousands_sep;
++ const char *grouping = localeconv()->grouping;
+
+ memset(obuf, 0, sizeof(obuf));
+