media-sound/xmms2-scrobbler: fix gcc-7 build failure
authorSergei Trofimovich <slyfox@gentoo.org>
Fri, 12 May 2017 23:23:59 +0000 (00:23 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Fri, 12 May 2017 23:23:59 +0000 (00:23 +0100)
Add missing '<stdio.h>' include for fprintf().

Package-Manager: Portage-2.3.5, Repoman-2.3.2

media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-gcc-7.patch [new file with mode: 0644]
media-sound/xmms2-scrobbler/xmms2-scrobbler-0.4.0.ebuild

diff --git a/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-gcc-7.patch b/media-sound/xmms2-scrobbler/files/xmms2-scrobbler-0.4.0-gcc-7.patch
new file mode 100644 (file)
index 0000000..383bb05
--- /dev/null
@@ -0,0 +1,8 @@
+diff --git a/src/submission.c b/src/submission.c
+index 422db0a..326b003 100644
+--- a/src/submission.c
++++ b/src/submission.c
+@@ -24,2 +24,3 @@
+ #include <stdlib.h>
++#include <stdio.h>
+ #include "submission.h"
index 524e5a21f2485d9a5e954f582f6d58f1b6140460..3d8aaeaa2f9b768ad9668a651b7e1cd0f6e4845c 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=4
@@ -22,6 +22,7 @@ src_prepare() {
        epatch "${FILESDIR}"/${P}-ldflags.patch
        epatch "${FILESDIR}"/${P}-libs.patch
        epatch "${FILESDIR}"/${P}-ld-order.patch
+       epatch "${FILESDIR}"/${P}-gcc-7.patch
 }
 
 src_compile() {