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).
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user