projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feacad7
)
Yang Tse's fix to only provide the proto if there is such a function and
author
Daniel Stenberg
<daniel@haxx.se>
Fri, 2 Dec 2005 23:22:45 +0000
(23:22 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Fri, 2 Dec 2005 23:22:45 +0000
(23:22 +0000)
we didn't find any proto
lib/strerror.c
patch
|
blob
|
history
diff --git
a/lib/strerror.c
b/lib/strerror.c
index
4edd28a
..
216ac29
100644
(file)
--- a/
lib/strerror.c
+++ b/
lib/strerror.c
@@
-42,7
+42,7
@@
#define _MPRINTF_REPLACE /* use our functions only */
#include <curl/mprintf.h>
-#if
def 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);