From 621c348365f2a51aa7bdc3e0a45b511bdde20aa5 Mon Sep 17 00:00:00 2001 From: Juergen Buchmueller Date: Tue, 8 Nov 2016 21:06:55 +0100 Subject: [PATCH] tomahawk-qt5: fix cross *-musl --- srcpkgs/tomahawk-qt5/patches/cross-musl.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 srcpkgs/tomahawk-qt5/patches/cross-musl.patch diff --git a/srcpkgs/tomahawk-qt5/patches/cross-musl.patch b/srcpkgs/tomahawk-qt5/patches/cross-musl.patch new file mode 100644 index 00000000000..65a08da0309 --- /dev/null +++ b/srcpkgs/tomahawk-qt5/patches/cross-musl.patch @@ -0,0 +1,30 @@ +--- src/libtomahawk/accounts/ResolverAccount.cpp 2016-11-08 20:50:59.907398017 +0100 ++++ src/libtomahawk/accounts/ResolverAccount.cpp 2016-11-08 20:56:33.222289769 +0100 +@@ -16,6 +16,9 @@ + * You should have received a copy of the GNU General Public License + * along with Tomahawk. If not, see . + */ ++#if !defined(__GLIBC__) ++#include ++#endif + + #include "ResolverAccount.h" + +@@ -185,10 +185,17 @@ + #elif defined( Q_OS_MAC ) + myPlatform = "osx"; + #elif defined( Q_OS_LINUX ) ++#if defined(__GLIBC__) + if ( __WORDSIZE == 32 ) + myPlatform = "linux-x86"; + else if ( __WORDSIZE == 64 ) + myPlatform = "linux-x64"; ++#else ++ if ( __WORDSIZE == 32 ) ++ myPlatform = "linux-musl-x86"; ++ else if ( __WORDSIZE == 64 ) ++ myPlatform = "linux-musl-x64"; ++#endif + #endif + + if ( !myPlatform.contains( platform ) )