summaryrefslogtreecommitdiffstats
path: root/m4/strerror_r.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/strerror_r.m4')
-rw-r--r--m4/strerror_r.m41
1 files changed, 1 insertions, 0 deletions
diff --git a/m4/strerror_r.m4 b/m4/strerror_r.m4
index 28924b1..e3b5d0c 100644
--- a/m4/strerror_r.m4
+++ b/m4/strerror_r.m4
@@ -25,6 +25,7 @@ AC_CACHE_CHECK([whether strerror_r returns char *],
char buf[100];
char x = *strerror_r (0, buf, sizeof buf);
char *p = strerror_r (0, buf, sizeof buf);
+ return !p || x;
]])],
ac_cv_func_strerror_r_char_p=yes)
else