Commit 9c312637 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Yang Tse's fix to only provide the proto if there is such a function and

we didn't find any proto
parent feacad7f
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -42,7 +42,7 @@
#define _MPRINTF_REPLACE /* use our functions only */
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
#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
#ifdef HAVE_POSIX_STRERROR_R
/* seen on AIX 5100-02 gcc 2.9 */
/* seen on AIX 5100-02 gcc 2.9 */
extern int strerror_r(int errnum, char *strerrbuf, size_t buflen);
extern int strerror_r(int errnum, char *strerrbuf, size_t buflen);