[megaglest] 04/08: Add gcc-6-ftbfs.patch

Markus Koschany apo-guest at moszumanska.debian.org
Thu Jul 14 23:25:46 UTC 2016


This is an automated email from the git hooks/post-receive script.

apo-guest pushed a commit to branch master
in repository megaglest.

commit 468f0efc41ee15038d2a23196403b7979ba3ec98
Author: Markus Koschany <apo at debian.org>
Date:   Fri Jul 15 00:44:32 2016 +0200

    Add gcc-6-ftbfs.patch
---
 debian/patches/gcc-6-ftbfs.patch | 22 ++++++++++++++++++++++
 debian/patches/series            |  1 +
 2 files changed, 23 insertions(+)

diff --git a/debian/patches/gcc-6-ftbfs.patch b/debian/patches/gcc-6-ftbfs.patch
new file mode 100644
index 0000000..0d896a2
--- /dev/null
+++ b/debian/patches/gcc-6-ftbfs.patch
@@ -0,0 +1,22 @@
+From: Markus Koschany <apo at debian.org>
+Date: Fri, 15 Jul 2016 00:44:11 +0200
+Subject: gcc-6 ftbfs
+
+---
+ source/shared_lib/sources/platform/common/platform_common.cpp | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/source/shared_lib/sources/platform/common/platform_common.cpp b/source/shared_lib/sources/platform/common/platform_common.cpp
+index d416b0d..03cd0af 100644
+--- a/source/shared_lib/sources/platform/common/platform_common.cpp
++++ b/source/shared_lib/sources/platform/common/platform_common.cpp
+@@ -124,7 +124,8 @@ tm threadsafe_localtime(const time_t &time) {
+ // extracting std::time_t from std:chrono for "now"
+ time_t systemtime_now() {
+ #if __cplusplus > 199711L
+-	system_time_point system_now = std::chrono::system_clock::now();
++	typedef std::chrono::time_point<std::chrono::system_clock> system_time_point_x;
++	system_time_point_x system_now = std::chrono::system_clock::now();
+ 	return std::chrono::system_clock::to_time_t(system_now);
+ #else
+ 	return time(NULL);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6e3cd40
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+gcc-6-ftbfs.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/megaglest.git



More information about the Pkg-games-commits mailing list