aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2020-05-27 13:02:18 -0700
committerRob Landley <rob@landley.net>2020-05-28 03:25:29 -0500
commite0f2912739ec7aa23b1cfde0a69bf9c37c5964f6 (patch)
tree3e2911a76944929b6798ed8fcdc4c938e374e743 /lib
parent5d9ef963b1d6c7c036eaeb337e97c5a1ca69c1fa (diff)
downloadtoybox-e0f2912739ec7aa23b1cfde0a69bf9c37c5964f6.tar.gz
portability.c: fix macOS build.
I suspect the rest of the non-POSIX signals might end up like this, but this is the subset that needs to be #ifdef'ed to fix the macOS build.
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/lib/portability.c b/lib/portability.c
index c85face3..0b6a2d9b 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -428,17 +428,23 @@ static const struct signame signames[] = {
SIGNIFY(USR1), SIGNIFY(USR2), SIGNIFY(SYS), SIGNIFY(TRAP),
SIGNIFY(VTALRM), SIGNIFY(XCPU), SIGNIFY(XFSZ),
// Non-POSIX signals that cause termination
- SIGNIFY(PROF), SIGNIFY(IO), SIGNIFY(POLL), SIGNIFY(PWR),
+ SIGNIFY(PROF), SIGNIFY(IO),
// signals only present/absent on some targets (mips and macos)
-#ifdef SIGSTKFLT
- SIGNIFY(STKFLT),
-#endif
#ifdef SIGEMT
SIGNIFY(EMT),
#endif
#ifdef SIGINFO
SIGNIFY(INFO),
#endif
+#ifdef SIGPOLL
+ SIGNIFY(POLL),
+#endif
+#ifdef SIGPWR
+ SIGNIFY(PWR),
+#endif
+#ifdef SIGSTKFLT
+ SIGNIFY(STKFLT),
+#endif
// Note: sigatexit relies on all the signals with a default disposition that
// terminates the process coming *before* SIGCHLD.