f4ccb51a0e
Use patch from Alpine. __SIGRTMIN and SIGRTMIN aren't the same thing: SIGRTMIN is for signals applications can use, for which musl currently returns 35, but __SIGRTMIN is supposed to include the signals that libc uses, where the correct value is 32.
21 lines
545 B
Diff
21 lines
545 B
Diff
relevant bug:
|
|
https://sourceware.org/bugzilla/show_bug.cgi?id=23616
|
|
|
|
diff --git a/gdbsupport/signals.cc b/gdbsupport/signals.cc
|
|
index 485e0f0..ab8d454 100644
|
|
--- a/gdbsupport/signals.cc
|
|
+++ b/gdbsupport/signals.cc
|
|
@@ -31,6 +31,13 @@ struct gdbarch;
|
|
_available_ realtime signal, not the lowest supported; glibc takes
|
|
several for its own use. */
|
|
|
|
+#ifndef __SIGRTMIN
|
|
+# define __SIGRTMIN 32
|
|
+#endif
|
|
+#ifndef __SIGRTMAX
|
|
+# define __SIGRTMAX _NSIG
|
|
+#endif
|
|
+
|
|
#ifndef REALTIME_LO
|
|
# if defined(__SIGRTMIN)
|
|
# define REALTIME_LO __SIGRTMIN
|