aboutsummaryrefslogtreecommitdiffstats
path: root/games/brainparty
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-09-14 09:15:19 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-09-14 09:15:19 +0800
commit76e3beb48e74c9c4e0e4af4f563dbf02282fc3b1 (patch)
tree37ffc1df26eaf3c296a15b27705ccc136b7247b1 /games/brainparty
parent736c098076322301644d3dd581d2bc0994f3fbe4 (diff)
downloadfreebsd-ports-gnome-76e3beb48e74c9c4e0e4af4f563dbf02282fc3b1.tar.gz
freebsd-ports-gnome-76e3beb48e74c9c4e0e4af4f563dbf02282fc3b1.tar.zst
freebsd-ports-gnome-76e3beb48e74c9c4e0e4af4f563dbf02282fc3b1.zip
Fix build with clang/libc++
Diffstat (limited to 'games/brainparty')
-rw-r--r--games/brainparty/files/patch-BPGame.h11
-rw-r--r--games/brainparty/files/patch-WordList.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/games/brainparty/files/patch-BPGame.h b/games/brainparty/files/patch-BPGame.h
new file mode 100644
index 000000000000..d3ad069f871c
--- /dev/null
+++ b/games/brainparty/files/patch-BPGame.h
@@ -0,0 +1,11 @@
+--- BPGame.h.orig 2010-03-06 17:50:16.000000000 +0300
++++ BPGame.h 2013-09-13 22:54:50.743226510 +0400
+@@ -54,7 +54,7 @@
+ class SpriteFont;
+
+ struct cmp_str {
+- bool operator()(char const *a, char const *b) {
++ bool operator()(char const *a, char const *b) const {
+ return std::strcmp(a, b) < 0;
+ }
+ };
diff --git a/games/brainparty/files/patch-WordList.h b/games/brainparty/files/patch-WordList.h
new file mode 100644
index 000000000000..bd0401f80495
--- /dev/null
+++ b/games/brainparty/files/patch-WordList.h
@@ -0,0 +1,11 @@
+--- WordList.h.orig 2010-03-02 16:29:45.000000000 +0300
++++ WordList.h 2013-09-13 05:51:27.977229632 +0400
+@@ -35,7 +35,7 @@
+ };
+ }
+
+-typedef hash_set<string, hash<string> > string_hash_set;
++typedef hash_set<string, __gnu_cxx::hash<string> > string_hash_set;
+
+ class WordList {
+ private: