From 0c0792454b5dcdee8fec0c321ffe6ec52b20b9a9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sun, 31 May 2015 13:04:11 +0200 Subject: [PATCH] yquake2: portability patch for musl. --- srcpkgs/yquake2/patches/musl.patch | 19 +++++++++++++++++++ srcpkgs/yquake2/template | 4 ++-- 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/yquake2/patches/musl.patch diff --git a/srcpkgs/yquake2/patches/musl.patch b/srcpkgs/yquake2/patches/musl.patch new file mode 100644 index 0000000000..873aba7566 --- /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 3e168b69f8..f1051d165d 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