aboutsummaryrefslogtreecommitdiffstats
path: root/community/qemu/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-12-13 09:51:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-12-13 09:51:16 +0000
commit5d6567e1da25bec0b85d3de14893618c885d9889 (patch)
treea6fd2b01b5650119b9d01b49de03b1bc98c2300a /community/qemu/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
parent8da2624dad504d761040aee449a97941b1c4930c (diff)
downloadaports-5d6567e1da25bec0b85d3de14893618c885d9889.tar.bz2
aports-5d6567e1da25bec0b85d3de14893618c885d9889.tar.xz
community/{qemu*,ceph}: move to community
move qemu and ceph to community. Thi sis to reduce maintenenance workload for security fixes. Upstream qemu appears to have less support time than 2 years.
Diffstat (limited to 'community/qemu/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch')
-rw-r--r--community/qemu/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/qemu/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch b/community/qemu/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
new file mode 100644
index 0000000000..528b5d5d8b
--- /dev/null
+++ b/community/qemu/0006-linux-user-signal.c-define-__SIGRTMIN-MAX-for-non-GN.patch
@@ -0,0 +1,37 @@
+From 8fbb4e6797ed67310b74cbaaa061269db45a5b71 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Tue, 29 Apr 2014 15:51:31 +0200
+Subject: [PATCH] linux-user/signal.c: define __SIGRTMIN/MAX for non-GNU
+ platforms
+
+The __SIGRTMIN and __SIGRTMAX are glibc internals and are not available
+on all platforms, so we define those if they are missing.
+
+This is needed for musl libc.
+
+Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
+---
+ linux-user/signal.c | 7 +++++++
+ 1 file changed, 7 insertions(+)
+
+diff --git a/linux-user/signal.c b/linux-user/signal.c
+index 5ca6d62b15..e917c16d91 100644
+--- a/linux-user/signal.c
++++ b/linux-user/signal.c
+@@ -25,6 +25,13 @@
+ #include "trace.h"
+ #include "signal-common.h"
+
++#ifndef __SIGRTMIN
++#define __SIGRTMIN 32
++#endif
++#ifndef __SIGRTMAX
++#define __SIGRTMAX (NSIG-1)
++#endif
++
+ static struct target_sigaction sigact_table[TARGET_NSIG];
+
+ static void host_signal_handler(int host_signum, siginfo_t *info,
+--
+2.23.0
+