Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2013 01:13:47 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r327193 - head/games/xmoto/files
Message-ID:  <201309140113.r8E1DlI8015923@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
+     }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309140113.r8E1DlI8015923>