diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2013-09-14 01:13:46 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2013-09-14 01:13:46 +0000 |
commit | 0741358ac93f90a136163677ab6c91f255eb941d (patch) | |
tree | 7768a2ede453a4944c335b36e59889638c2e9829 /games/xmoto | |
parent | 9c7b26f298599a6fa6d8af7a242be3e18ac25953 (diff) | |
download | ports-0741358ac93f90a136163677ab6c91f255eb941d.tar.gz ports-0741358ac93f90a136163677ab6c91f255eb941d.zip |
Fix build with clang/libc++
Notes
Notes:
svn path=/head/; revision=327193
Diffstat (limited to 'games/xmoto')
-rw-r--r-- | games/xmoto/files/patch-src-helpers-System.cpp | 11 | ||||
-rw-r--r-- | games/xmoto/files/patch-src-include-xm__hashmap.h | 11 |
2 files changed, 22 insertions, 0 deletions
diff --git a/games/xmoto/files/patch-src-helpers-System.cpp b/games/xmoto/files/patch-src-helpers-System.cpp new file mode 100644 index 000000000000..e95613e9d1eb --- /dev/null +++ b/games/xmoto/files/patch-src-helpers-System.cpp @@ -0,0 +1,11 @@ +--- src/helpers/System.cpp.orig 2011-10-12 00:18:14.000000000 +0400 ++++ src/helpers/System.cpp 2013-09-13 22:36:38.029229232 +0400 +@@ -25,6 +25,8 @@ + #include "VExcept.h" + #include <sstream> + ++#include <unistd.h> // for getpid() ++ + std::vector<std::string>* System::getDisplayModes(int windowed) { + std::vector<std::string>* modes = new std::vector<std::string>; + SDL_Rect **sdl_modes; diff --git a/games/xmoto/files/patch-src-include-xm__hashmap.h b/games/xmoto/files/patch-src-include-xm__hashmap.h new file mode 100644 index 000000000000..479833f698dc --- /dev/null +++ b/games/xmoto/files/patch-src-include-xm__hashmap.h @@ -0,0 +1,11 @@ +--- src/include/xm_hashmap.h.orig 2011-10-12 00:18:17.000000000 +0400 ++++ src/include/xm_hashmap.h 2013-09-13 22:30:46.334969348 +0400 +@@ -14,7 +14,7 @@ + namespace HashNamespace=std; + #endif + struct hashcmp_str { +- bool operator()(const char* s1, const char* s2) { ++ bool operator()(const char* s1, const char* s2) const { + if(s1 == NULL || s2 == NULL) { + return false; + } |