mirror of
https://github.com/curl/curl.git
synced 2026-08-25 01:03:31 +03:00
if no strerror_r prototype is found, we provide our own to prevent picky
compilers to warn
This commit is contained in:
parent
af72f198ba
commit
6f74820cfc
2 changed files with 20 additions and 0 deletions
|
|
@ -32,6 +32,15 @@
|
|||
#define _MPRINTF_REPLACE /* use our functions only */
|
||||
#include <curl/mprintf.h>
|
||||
|
||||
#ifdef 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);
|
||||
#else
|
||||
extern char *strerror_r(int errnum, char *buf, size_t buflen);
|
||||
#endif
|
||||
#endif
|
||||
|
||||
const char *
|
||||
curl_easy_strerror(CURLcode error)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue