xonotic: unbreak musl
This commit is contained in:
parent
2a714d3b05
commit
5be19e54de
2 changed files with 14 additions and 1 deletions
13
srcpkgs/xonotic/patches/musl-moncontrol.patch
Normal file
13
srcpkgs/xonotic/patches/musl-moncontrol.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
There is no moncontrol() in musl libc.
|
||||
|
||||
--- source/darkplaces/sys_shared.c 2015-01-13 19:56:16.000000000 +0100
|
||||
+++ source/darkplaces/sys_shared.c 2015-08-30 09:24:54.839064473 +0200
|
||||
@@ -69,7 +69,7 @@
|
||||
else
|
||||
moncleanup();
|
||||
#endif
|
||||
-#elif defined(__linux__) || defined(__FreeBSD__)
|
||||
+#elif (defined(__linux__) && defined(__GLIBC__)) || defined(__FreeBSD__)
|
||||
extern int moncontrol(int);
|
||||
moncontrol(enable);
|
||||
#endif
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'xonotic'
|
||||
pkgname=xonotic
|
||||
version=0.8.1
|
||||
revision=1
|
||||
revision=2
|
||||
wrksrc="Xonotic"
|
||||
homepage="http://xonotic.org"
|
||||
license="GPL-2, GPL-3"
|
||||
|
|
Loading…
Reference in a new issue