yquake2: portability patch for musl.

This commit is contained in:
Juan RP 2015-05-31 13:04:11 +02:00
parent 59a637eb89
commit 0c0792454b
2 changed files with 21 additions and 2 deletions

View File

@ -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 <signal.h>
-#ifdef __linux__
+#if defined(__linux__) && defined(__GLIBC__)
#include <execinfo.h>
#endif
#include "../../common/header/common.h"
-#ifdef __linux__
-
+#if defined(__linux__) && defined(__GLIBC__)
void
printBacktrace(int sig)
{

View File

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