aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-04-27 14:17:36 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-04-27 14:17:36 +0000
commit5b0a5c4050fcd95241c816753cd2c6090a8cbc9e (patch)
tree50f1cc98b1bddccefb1d736271097cab147fdd2b
parent4b9f8e766d0c4d989b0188a6dfd3c667e49a93a9 (diff)
provide our own inet_ntoa_r() proto if the system has none on its own
-rw-r--r--lib/inet_ntop.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/inet_ntop.c b/lib/inet_ntop.c
index 22c053e17..9dfccb3c6 100644
--- 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