aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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>