From a059e9241ece02a13c66133ceaa926c3c2032215 Mon Sep 17 00:00:00 2001
From: Yang Tse <yangsita@gmail.com>
Date: Thu, 18 Sep 2008 11:21:55 +0000
Subject: [PATCH] fix false negative strerror_r detection

---
 m4/curl-functions.m4 | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/m4/curl-functions.m4 b/m4/curl-functions.m4
index 26ed3960cd..2b11d720e3 100644
--- a/m4/curl-functions.m4
+++ b/m4/curl-functions.m4
@@ -1735,6 +1735,12 @@ AC_DEFUN([CURL_CHECK_FUNC_STRERROR_R], [
     ])
   fi
   #
+  if test "$tst_works_glibc_strerror_r" = "yes"; then
+    tst_posix_strerror_r="no"
+  fi
+  if test "$tst_works_posix_strerror_r" = "yes"; then
+    tst_glibc_strerror_r="no"
+  fi
   if test "$tst_glibc_strerror_r" = "yes" &&
     test "$tst_works_glibc_strerror_r" != "no" &&
     test "$tst_posix_strerror_r" != "yes"; then
-- 
GitLab