aboutsummaryrefslogtreecommitdiff
path: root/lib/strerror.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/strerror.c')
-rw-r--r--lib/strerror.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index 3720f57..db11944 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -24,8 +24,10 @@ const char *substitute_strerror(int err) {
_SUBSTITUTE_CURRENT_MAX_ERR_PLUS_ONE + 1,
"not all errors named in strerror.c");
/* substitute-internal.h */
+#ifdef __APPLE__
CASE(SUBSTITUTE_ERR_TASK_FOR_PID);
CASE(SUBSTITUTE_ERR_MISC);
+#endif /* __APPLE__ */
default:
return "(unknown libsubstitute error)";
}