Date: Thu, 24 Aug 2017 14:13:48 +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: r448671 - head/games/valyriatear/files Message-ID: <201708241413.v7OEDmvg014139@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: amdmi3 Date: Thu Aug 24 14:13:48 2017 New Revision: 448671 URL: https://svnweb.freebsd.org/changeset/ports/448671 Log: - Fix built with gcc6 PR: 216078 Reported by: jbeich Added: head/games/valyriatear/files/patch-src_main.cpp (contents, props changed) Added: head/games/valyriatear/files/patch-src_main.cpp ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/games/valyriatear/files/patch-src_main.cpp Thu Aug 24 14:13:48 2017 (r448671) @@ -0,0 +1,11 @@ +--- src/main.cpp.orig 2016-04-25 20:52:18 UTC ++++ src/main.cpp +@@ -459,7 +459,7 @@ int main(int argc, char *argv[]) + chdir(path.c_str()); + #elif (defined(__linux__) || defined(__FreeBSD__) || defined(__OpenBSD__) || defined(SOLARIS)) && !defined(RELEASE_BUILD) + // Look for data files in DATADIR only if they are not available in the current directory. +- if(std::ifstream("dat/config/settings.lua") == NULL) { ++ if(!std::ifstream("dat/config/settings.lua").good()) { + if(chdir(PKG_DATADIR) != 0) { + throw Exception("ERROR: failed to change directory to data location", __FILE__, __LINE__, __FUNCTION__); + }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708241413.v7OEDmvg014139>