aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-26 10:33:17 +0000
committerYang Tse <yangsita@gmail.com>2006-07-26 10:33:17 +0000
commitb765e1f3b7f0c6932f7f0a61c6272caf10700385 (patch)
tree9a81fdefb06f2d59456d46d1e72bbd59c6b1d783
parent2527b5301946539363754a390974cdd3a3d34485 (diff)
Sync header with source code
-rw-r--r--ares/inet_ntop.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/ares/inet_ntop.h b/ares/inet_ntop.h
index f9a1d92f7..aaafbbdb8 100644
--- a/ares/inet_ntop.h
+++ b/ares/inet_ntop.h
@@ -1,3 +1,6 @@
+#ifndef __ARES_INET_NTOP_H
+#define __ARES_INET_NTOP_H
+
/* $Id$ */
/*
@@ -14,13 +17,10 @@
* without express or implied warranty.
*/
-#ifndef INET_NTOP_H
-#define INET_NTOP_H
-
-#ifdef HAVE_INET_NTOP
+#if defined(HAVE_INET_NTOP) && defined(HAVE_INET_NTOP_IPV6)
#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 */
+#endif /* __ARES_INET_NTOP_H */