Skip to contentSkip to conversation

Define SIGRTMIN and SIGRTMAX for musl

PATCH New Rafael David Tinoco 2 participants 2 messages Feb 19, 2019 – Feb 20, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Define SIGRTMIN and SIGRTMAX for musl

Although unsupported, musl enablement is always good to pursue. Defining __SIGRTMIN and __SIGRTMAX is needed for musl enablement.

---
 include/old/test.h | 7 +++++++
 1 file changed, 7 insertions(+)
include/old/test.h +7 -0
index 0738237e9..01b0bd4de 100644
@@ -50,6 +50,13 @@
 #define NUMSIGS NSIG
 #endif
 
+#ifndef __SIGRTMIN
+#define __SIGRTMIN 32
+#endif
+
+#ifndef __SIGRTMAX
+#define __SIGRTMAX (_NSIG - 1)
+#endif
 
 /* defines for unexpected signal setup routine (set_usig.c) */
 #define FORK    1		/* SIGCHLD is to be ignored */
Signature · 1 line
2.20.1
#1 lore raw

PATCH 1/1 Define SIGRTMIN and SIGRTMAX for musl

Hi Rafael,

Quoted 7 lines

Although unsupported, musl enablement is always good to pursue. Defining __SIGRTMIN and __SIGRTMAX is needed for musl enablement.

---
 include/old/test.h | 7 +++++++

Good catch, thanks :). But could you please create include/lapi/signal.h and add it there? (+ load <signal.h> before). And then include it in all 4 missing places? In this case it can be used also in the future.

Kind regards,
Petr

Quoted 20 lines
 1 file changed, 7 insertions(+)
include/old/test.h +7 -0
index 0738237e9..01b0bd4de 100644
@@ -50,6 +50,13 @@
 #define NUMSIGS NSIG
 #endif
 
+#ifndef __SIGRTMIN
+#define __SIGRTMIN 32
+#endif
+
+#ifndef __SIGRTMAX
+#define __SIGRTMAX (_NSIG - 1)
+#endif
 
 /* defines for unexpected signal setup routine (set_usig.c) */
 #define FORK    1		/* SIGCHLD is to be ignored */