aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2020-06-21 10:21:26 +0200
committerMattias Andrée <maandree@kth.se>2020-06-21 10:21:26 +0200
commit17a8d671d61d045c2779d4ecbc9ea07f08641cef (patch)
tree65103d1c165e0b6247eb18f9b355b1e7ddf1339f
parentUse __SIGRTMIN and __SIGRTMAX and #define them if missing (diff)
downloadsctrace-17a8d671d61d045c2779d4ecbc9ea07f08641cef.tar.gz
sctrace-17a8d671d61d045c2779d4ecbc9ea07f08641cef.tar.bz2
sctrace-17a8d671d61d045c2779d4ecbc9ea07f08641cef.tar.xz
#define SIGCLD if missing, needed for musl
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--common.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/common.h b/common.h
index 125611e..672aa37 100644
--- a/common.h
+++ b/common.h
@@ -18,6 +18,11 @@
# error "This program is only implemented for Linux"
#endif
+/* #define signals that may appear in list-signums.h but may be missing in <signalh> */
+#if !defined(SIGCLD) && defined(SIGCHLD)
+# define SIGCLD SIGCHLD
+#endif
+
#include "arg.h"
#include "list-errnos.h"
#include "list-signums.h"