diff --git a/srcpkgs/yquake2/patches/musl.patch b/srcpkgs/yquake2/patches/musl.patch new file mode 100644 index 00000000000..873aba75662 --- /dev/null +++ b/srcpkgs/yquake2/patches/musl.patch @@ -0,0 +1,19 @@ +--- src/backends/unix/signalhandler.c.orig 2015-05-31 13:02:37.500133271 +0200 ++++ src/backends/unix/signalhandler.c 2015-05-31 13:02:54.932317118 +0200 +@@ -28,14 +28,13 @@ + + #include + +-#ifdef __linux__ ++#if defined(__linux__) && defined(__GLIBC__) + #include + #endif + + #include "../../common/header/common.h" + +-#ifdef __linux__ +- ++#if defined(__linux__) && defined(__GLIBC__) + void + printBacktrace(int sig) + { diff --git a/srcpkgs/yquake2/template b/srcpkgs/yquake2/template index 3e168b69f8a..f1051d165d4 100644 --- a/srcpkgs/yquake2/template +++ b/srcpkgs/yquake2/template @@ -1,8 +1,8 @@ # Template file for 'yquake2' pkgname=yquake2 version=5.30 -revision=1 -only_for_archs="i686 x86_64" +revision=2 +only_for_archs="i686 i686-musl x86_64 x86_64-musl" wrksrc="quake2-${version}" hostmakedepends="pkg-config" makedepends="zlib-devel libopenal-devel alsa-lib-devel libjpeg-turbo-devel