commit:     23b0d21a500c1b36d9df88ff30d3bc1491af208b
Author:     Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 12 20:41:54 2019 +0000
Commit:     Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
CommitDate: Thu Dec 12 20:41:54 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23b0d21a

media-plugins/vdr-freecell: fixed time_ms was not declared in this scope

Bug: https://bugs.gentoo.org/702612
Closes: https://bugs.gentoo.org/702612
Package-Manager: Portage-2.3.81, Repoman-2.3.18
Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org>

 .../files/vdr-freecell-0.0.2_compilefix.patch           | 17 +++++++++++++++++
 media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild |  1 +
 2 files changed, 18 insertions(+)

diff --git 
a/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_compilefix.patch 
b/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_compilefix.patch
new file mode 100644
index 00000000000..fb97d1850ff
--- /dev/null
+++ b/media-plugins/vdr-freecell/files/vdr-freecell-0.0.2_compilefix.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/702612
+compile fix for: time_ms was not declared in this scope
+
+Signed-off-by: Joerg Bornkessel <hd_bru...@gentoo.org> (12 Dec 2019) 
+
+diff -Naur freecell-0.0.2.orig/cards.c freecell-0.0.2/cards.c
+--- freecell-0.0.2.orig/cards.c        2019-12-12 21:25:43.000000000 +0100
++++ freecell-0.0.2/cards.c     2019-12-12 21:27:38.000000000 +0100
+@@ -52,7 +52,7 @@
+       mX = X;
+       mY = Y;
+       mStacked = Stacked;
+-      mSeed = time_ms();
++      mSeed = cTimeMs::Now();
+ }
+ 
+ cCardStack::~cCardStack() {

diff --git a/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild 
b/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild
index 3d10e2af527..a8442bf991d 100644
--- a/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild
+++ b/media-plugins/vdr-freecell/vdr-freecell-0.0.2-r4.ebuild
@@ -24,6 +24,7 @@ src_prepare() {
        eapply -p2 "${FILESDIR}/gcc-3.4.patch"
        eapply "${FILESDIR}/${P}-gentoo.diff"
        eapply "${FILESDIR}/${P}_vdr-1.5.4-compile.diff"
+       eapply "${FILESDIR}/${P}_compilefix.patch"
 }
 
 src_install() {

Reply via email to