svn commit: r327193 - head/games/xmoto/files

Dmitry Marakasov amdmi3 at FreeBSD.org
Sat Sep 14 01:13:47 UTC 2013


Author: amdmi3
Date: Sat Sep 14 01:13:46 2013
New Revision: 327193
URL: http://svnweb.freebsd.org/changeset/ports/327193

Log:
  Fix build with clang/libc++

Added:
  head/games/xmoto/files/patch-src-helpers-System.cpp   (contents, props changed)
  head/games/xmoto/files/patch-src-include-xm__hashmap.h   (contents, props changed)

Added: head/games/xmoto/files/patch-src-helpers-System.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/xmoto/files/patch-src-helpers-System.cpp	Sat Sep 14 01:13:46 2013	(r327193)
@@ -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;

Added: head/games/xmoto/files/patch-src-include-xm__hashmap.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/xmoto/files/patch-src-include-xm__hashmap.h	Sat Sep 14 01:13:46 2013	(r327193)
@@ -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;
+     }


More information about the svn-ports-head mailing list