summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-12-02 23:22:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-12-02 23:22:45 +0000
commit9c312637d1875602bdb8f69c6e9741ffc5d4e5af (patch)
treed94e2689a6b0e627f20681795c734ee0e78e7353
parentfeacad7f684920d4d91b456f8c80e2a30dd4a400 (diff)
downloadgnurl-9c312637d1875602bdb8f69c6e9741ffc5d4e5af.tar.gz
gnurl-9c312637d1875602bdb8f69c6e9741ffc5d4e5af.tar.bz2
gnurl-9c312637d1875602bdb8f69c6e9741ffc5d4e5af.zip
Yang Tse's fix to only provide the proto if there is such a function and
we didn't find any proto
-rw-r--r--lib/strerror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/strerror.c b/lib/strerror.c
index 4edd28ac7..216ac2964 100644
--- a/lib/strerror.c
+++ b/lib/strerror.c
@@ -42,7 +42,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#ifdef HAVE_NO_STRERROR_R_DECL
+#if defined(HAVE_STRERROR_R) && defined(HAVE_NO_STRERROR_R_DECL)
#ifdef HAVE_POSIX_STRERROR_R
/* seen on AIX 5100-02 gcc 2.9 */
extern int strerror_r(int errnum, char *strerrbuf, size_t buflen);