ssr: unbreak for musl.

This commit is contained in:
Juan RP 2016-05-02 09:49:27 +02:00
parent 4aebeb319f
commit 309e13ec3e
2 changed files with 20 additions and 1 deletions

View file

@ -0,0 +1,19 @@
--- glinject/elfhacks.h.orig 2016-05-02 09:43:59.940521673 +0200
+++ glinject/elfhacks.h 2016-05-02 09:44:35.563864890 +0200
@@ -48,14 +48,14 @@ extern "C" {
#if defined(__elf64)
# define ELFW_R_SYM ELF64_R_SYM
# define ElfW_Sword Elf64_Sxword
-# ifdef BSD
+# if defined(BSD) || defined(__linux__) && !defined(__GLIBC__)
# define ElfW(v) Elf64_##v
# define __ELF_NATIVE_CLASS 64
# endif
#elif defined(__elf32)
# define ELFW_R_SYM ELF32_R_SYM
# define ElfW_Sword Elf32_Sword
-# ifdef BSD
+# if defined(BSD) || defined(__linux__) && !defined(__GLIBC__)
# define ElfW(v) Elf32_##v
# define __ELF_NATIVE_CLASS 32
# endif

View file

@ -1,7 +1,7 @@
# Template file for 'ssr'
pkgname=ssr
version=0.3.6
revision=1
revision=2
build_style=gnu-configure
configure_args="--with-qt5"
hostmakedepends="pkg-config"