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:
4b9f8e7
)
provide our own inet_ntoa_r() proto if the system has none on its own
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 27 Apr 2004 14:17:36 +0000
(14:17 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 27 Apr 2004 14:17:36 +0000
(14:17 +0000)
lib/inet_ntop.c
patch
|
blob
|
history
diff --git
a/lib/inet_ntop.c
b/lib/inet_ntop.c
index
22c053e
..
9dfccb3
100644
(file)
--- a/
lib/inet_ntop.c
+++ b/
lib/inet_ntop.c
@@
-26,6
+26,12
@@
#include "inet_ntop.h"
+#if defined(HAVE_INET_NTOA_R) && !defined(HAVE_INET_NTOA_R_DECL)
+/* this platform has a inet_ntoa_r() function, but no proto declared anywhere
+ so we include our own proto to make compilers happy */
+#include "inet_ntoa_r.h"
+#endif
+
#define IN6ADDRSZ 16
#define INADDRSZ 4
#define INT16SZ 2