Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Sep 2013 01:15:25 +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: r327203 - head/games/widelands/files
Message-ID:  <201309140115.r8E1FPpQ017209@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Sat Sep 14 01:15:25 2013
New Revision: 327203
URL: http://svnweb.freebsd.org/changeset/ports/327203

Log:
  Fix build with clang/libc++

Added:
  head/games/widelands/files/patch-src-i18n.cc   (contents, props changed)
  head/games/widelands/files/patch-src-io-filesystem-disk__filesystem.cc   (contents, props changed)
  head/games/widelands/files/patch-src-journal__exceptions.h   (contents, props changed)
  head/games/widelands/files/patch-src-main.cc   (contents, props changed)
  head/games/widelands/files/patch-src-writeHTML.cc   (contents, props changed)

Added: head/games/widelands/files/patch-src-i18n.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/widelands/files/patch-src-i18n.cc	Sat Sep 14 01:15:25 2013	(r327203)
@@ -0,0 +1,10 @@
+--- src/i18n.cc.orig	2012-04-23 13:46:49.000000000 +0400
++++ src/i18n.cc	2013-09-13 20:18:48.792226136 +0400
+@@ -27,6 +27,7 @@
+ 
+ #include <cstdlib>
+ #include <utility>
++#include <clocale>
+ 
+ #if __APPLE__  && LIBINTL_VERSION >= 0x001201
+ // for older libintl versions, setlocale is just fine

Added: head/games/widelands/files/patch-src-io-filesystem-disk__filesystem.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/widelands/files/patch-src-io-filesystem-disk__filesystem.cc	Sat Sep 14 01:15:25 2013	(r327203)
@@ -0,0 +1,10 @@
+--- src/io/filesystem/disk_filesystem.cc.orig	2012-04-23 13:46:49.000000000 +0400
++++ src/io/filesystem/disk_filesystem.cc	2013-09-13 20:35:42.666227898 +0400
+@@ -43,6 +43,7 @@
+ #include <sys/statvfs.h>
+ #include <sys/types.h>
+ #include <fcntl.h>
++#include <unistd.h> // for unlink()
+ #ifndef _GNU_SOURCE
+ #define _GNU_SOURCE // for O_NOATIME
+ #endif

Added: head/games/widelands/files/patch-src-journal__exceptions.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/widelands/files/patch-src-journal__exceptions.h	Sat Sep 14 01:15:25 2013	(r327203)
@@ -0,0 +1,10 @@
+--- src/journal_exceptions.h.orig	2012-04-23 13:46:49.000000000 +0400
++++ src/journal_exceptions.h	2013-09-13 21:33:33.010227122 +0400
+@@ -22,6 +22,7 @@
+ 
+ #include <stdint.h>
+ #include <stdexcept>
++#include <string>
+ 
+ ///
+ /// Thrown for IO-errors occurring with a journal file (unable to open file

Added: head/games/widelands/files/patch-src-main.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/widelands/files/patch-src-main.cc	Sat Sep 14 01:15:25 2013	(r327203)
@@ -0,0 +1,10 @@
+--- src/main.cc.orig	2012-04-23 13:46:49.000000000 +0400
++++ src/main.cc	2013-09-13 22:45:51.418226482 +0400
+@@ -34,6 +34,7 @@
+ #ifndef WIN32
+ #include <syslog.h>
+ #include <fcntl.h>
++#include <unistd.h>
+ #endif
+ 
+ using std::cerr;

Added: head/games/widelands/files/patch-src-writeHTML.cc
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/widelands/files/patch-src-writeHTML.cc	Sat Sep 14 01:15:25 2013	(r327203)
@@ -0,0 +1,11 @@
+--- src/writeHTML.cc.orig	2012-04-23 13:46:49.000000000 +0400
++++ src/writeHTML.cc	2013-09-13 22:31:32.367226376 +0400
+@@ -223,7 +223,7 @@
+ //  A container to keep the types ordered by descname for the table of
+ // contents.
+ struct orderer {
+-	bool operator () (std::string const * const a, std::string const * const b)
++	bool operator () (std::string const * const a, std::string const * const b) const
+ 	{
+ 		return *a < *b;
+ 	}



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