aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2020-05-20 15:18:58 -0700
committerRob Landley <rob@landley.net>2020-05-21 02:50:13 -0500
commit6c5fa2219b83d83ef114b2027ba4df96808fa1de (patch)
tree43f820108f832fd4181ad444d4fb9c1fd0aab5a9 /lib
parent310eefe2956725ab1ae913a2eccf3f885e321c7f (diff)
downloadtoybox-6c5fa2219b83d83ef114b2027ba4df96808fa1de.tar.gz
glibc on mips is missing SIGSTKFLT
Do not therefore assume it being available linuxwide Fixes | lib/portability.c:433:3: error: use of undeclared identifier 'SIGSTKFLT' | SIGNIFY(STKFLT), SIGNIFY(POLL), SIGNIFY(PWR), | ^ Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/portability.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/portability.c b/lib/portability.c
index 8b8f0f3b..294141c6 100644
--- a/lib/portability.c
+++ b/lib/portability.c
@@ -430,7 +430,10 @@ static const struct signame signames[] = {
// Non-POSIX signals that cause termination
SIGNIFY(PROF), SIGNIFY(IO),
#ifdef __linux__
- SIGNIFY(STKFLT), SIGNIFY(POLL), SIGNIFY(PWR),
+# if !defined(__GLIBC__) && !defined(__mips__)
+ SIGNIFY(STKFLT),
+# endif
+ SIGNIFY(POLL), SIGNIFY(PWR),
#elif defined(__APPLE__)
SIGNIFY(EMT), SIGNIFY(INFO),
#endif