4 * Permission to use, copy, modify, and distribute this
5 * software and its documentation for any purpose and without
6 * fee is hereby granted, provided that the above copyright
7 * notice appear in all copies and that both that copyright
8 * notice and this permission notice appear in supporting
9 * documentation, and that the name of M.I.T. not be used in
10 * advertising or publicity pertaining to distribution of the
11 * software without specific, written prior permission.
12 * M.I.T. makes no representations about the suitability of
13 * this software for any purpose. It is provided "as is"
14 * without express or implied warranty.
17 #ifndef INET_NET_PTON_H
18 #define INET_NET_PTON_H
21 #define PF_INET6 AF_INET6
24 #ifndef HAVE_STRUCT_IN6_ADDR
27 unsigned char s6_addr[16];
31 #if defined(HAVE_INET_PTON) && defined(HAVE_INET_PTON_IPV6)
32 #define ares_inet_pton(x,y,z) inet_pton(x,y,z)
34 int ares_inet_pton(int af, const char *src, void *dst);
36 #if defined(HAVE_INET_NET_PTON) && defined(HAVE_INET_NET_PTON_IPV6)
37 #define ares_inet_net_pton(w,x,y,z) inet_net_pton(w,x,y,z)
39 int ares_inet_net_pton(int af, const char *src, void *dst, size_t size);
42 #endif /* INET_NET_PTON_H */