aboutsummaryrefslogtreecommitdiff
path: root/ares/inet_ntop.h
diff options
context:
space:
mode:
authorDominick Meglio <dcm5151@esu.edu>2005-05-14 18:35:20 +0000
committerDominick Meglio <dcm5151@esu.edu>2005-05-14 18:35:20 +0000
commit7dded571de1b2f0548a2f4a81ad79d864bdec3be (patch)
treec83fa5376c56b9df3119653e90f6e249a3e44517 /ares/inet_ntop.h
parent95fe8372e858bc27a85507a0b6b2fa55234a902f (diff)
Added an inet_ntop function from BIND for systems that do not have it
Diffstat (limited to 'ares/inet_ntop.h')
-rw-r--r--ares/inet_ntop.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/ares/inet_ntop.h b/ares/inet_ntop.h
new file mode 100644
index 000000000..f9a1d92f7
--- /dev/null
+++ b/ares/inet_ntop.h
@@ -0,0 +1,26 @@
+/* $Id$ */
+
+/*
+ * Permission to use, copy, modify, and distribute this
+ * software and its documentation for any purpose and without
+ * fee is hereby granted, provided that the above copyright
+ * notice appear in all copies and that both that copyright
+ * notice and this permission notice appear in supporting
+ * documentation, and that the name of M.I.T. not be used in
+ * advertising or publicity pertaining to distribution of the
+ * software without specific, written prior permission.
+ * M.I.T. makes no representations about the suitability of
+ * this software for any purpose. It is provided "as is"
+ * without express or implied warranty.
+ */
+
+#ifndef INET_NTOP_H
+#define INET_NTOP_H
+
+#ifdef HAVE_INET_NTOP
+#define ares_inet_ntop(w,x,y,z) inet_ntop(w,x,y,z)
+#else
+const char *ares_inet_ntop(int af, const void *src, char *dst, size_t size);
+#endif
+
+#endif /* INET_NET_NTOP_H */