aboutsummaryrefslogtreecommitdiff
path: root/package/flac
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2015-04-11 10:17:23 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-04-11 15:31:45 +0200
commit3e1a97ad1b9225d5826d711204035c93c865157a (patch)
treef63a8fe3b39a8d5fee3d26aa188dd9a497d0c436 /package/flac
parent5e90f6350e047f856617399c31842ca34ea11ed5 (diff)
downloadbuildroot-3e1a97ad1b9225d5826d711204035c93c865157a.tar.gz
buildroot-3e1a97ad1b9225d5826d711204035c93c865157a.tar.bz2
package/flac: Fix musl compile
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/flac')
-rw-r--r--package/flac/0002-sigemptyset.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/flac/0002-sigemptyset.patch b/package/flac/0002-sigemptyset.patch
new file mode 100644
index 0000000000..9cbc338a67
--- /dev/null
+++ b/package/flac/0002-sigemptyset.patch
@@ -0,0 +1,18 @@
+Fix musl compile since it does not define __sigemptyset
+
+Downloaded from
+http://git.alpinelinux.org/cgit/aports/commit/main/flac/sigemptyset.patch?id=49fd0f4cebc46e2753d6a60e450078446f7f18a7
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+--- ./src/libFLAC/cpu.c.orig
++++ ./src/libFLAC/cpu.c
+@@ -243,7 +243,7 @@
+ struct sigaction sigill_save;
+ struct sigaction sigill_sse;
+ sigill_sse.sa_sigaction = sigill_handler_sse_os;
+- __sigemptyset(&sigill_sse.sa_mask);
++ sigemptyset(&sigill_sse.sa_mask);
+ sigill_sse.sa_flags = SA_SIGINFO | SA_RESETHAND; /* SA_RESETHAND just in case our SIGILL return jump breaks, so we don't get stuck in a loop */
+ if(0 == sigaction(SIGILL, &sigill_sse, &sigill_save))
+ {