aboutsummaryrefslogtreecommitdiff
path: root/lib/strerror.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-05-18 13:24:23 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-05-18 13:24:23 +0000
commitdd7b6aef392c3d7cf4e3e346c1d15a3067da6d19 (patch)
treefab2278ece67aaeb77be58cbe78124197f4804e4 /lib/strerror.c
parent910b8b6a69e8e1e1bfb3ee6c7dd6980fd11590e8 (diff)
The configure check for strerror_r() failed to detect the proper API at
times, like on my HP-UX 10.20 tests. And then lib/strerror.c badly assumed the glibc version if the posix define wasn't set (since it _had_ found a strerror_r).
Diffstat (limited to 'lib/strerror.c')
-rw-r--r--lib/strerror.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index dcc7f5040..68e00cf2d 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -22,6 +22,12 @@
#include "setup.h"
+#ifdef HAVE_STRERROR_R
+#if !defined(HAVE_POSIX_STRERROR_R) && !defined(HAVE_GLIBC_STRERROR_R)
+#error "you MUST have either POSIX or glibc strerror_r if strerror_r is found"
+#endif /* !POSIX && !glibc */
+#endif /* HAVE_STRERROR_R */
+
#include <curl/curl.h>
#include <stdlib.h>
#include <string.h>