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 ) )