summaryrefslogtreecommitdiff
path: root/games/openttd/patches/patch-src_string.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'games/openttd/patches/patch-src_string.cpp')
-rw-r--r--games/openttd/patches/patch-src_string.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/openttd/patches/patch-src_string.cpp b/games/openttd/patches/patch-src_string.cpp
new file mode 100644
index 00000000000..dc3d2f3055b
--- /dev/null
+++ b/games/openttd/patches/patch-src_string.cpp
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_string.cpp,v 1.1 2012/04/28 06:56:43 adam Exp $
+
+Define Collator when building strgen.
+
+--- src/string.cpp.orig 2012-04-27 16:01:34.000000000 +0000
++++ src/string.cpp
+@@ -29,6 +29,9 @@
+ #include <unicode/ustring.h>
+ #include "language.h"
+ #include "gfx_func.h"
++#if defined(STRGEN) || defined(SETTINGSGEN)
++Collator *_current_collator = NULL;
++#endif
+ #endif /* WITH_ICU */
+
+ /**