From dd7b6aef392c3d7cf4e3e346c1d15a3067da6d19 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 18 May 2005 13:24:23 +0000 Subject: 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). --- lib/strerror.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/strerror.c') 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 #include #include -- cgit v1.2.3