1 #ifndef __ARES_INET_NET_PTON_H
2 #define __ARES_INET_NET_PTON_H
6 /* Copyright (C) 2005 by Daniel Stenberg
8 * Permission to use, copy, modify, and distribute this
9 * software and its documentation for any purpose and without
10 * fee is hereby granted, provided that the above copyright
11 * notice appear in all copies and that both that copyright
12 * notice and this permission notice appear in supporting
13 * documentation, and that the name of M.I.T. not be used in
14 * advertising or publicity pertaining to distribution of the
15 * software without specific, written prior permission.
16 * M.I.T. makes no representations about the suitability of
17 * this software for any purpose. It is provided "as is"
18 * without express or implied warranty.
21 #if defined(HAVE_INET_PTON) && defined(HAVE_INET_PTON_IPV6)
22 #define ares_inet_pton(x,y,z) inet_pton(x,y,z)
24 int ares_inet_pton(int af, const char *src, void *dst);
26 #if defined(HAVE_INET_NET_PTON) && defined(HAVE_INET_NET_PTON_IPV6)
27 #define ares_inet_net_pton(w,x,y,z) inet_net_pton(w,x,y,z)
29 int ares_inet_net_pton(int af, const char *src, void *dst, size_t size);
32 #endif /* __ARES_INET_NET_PTON_H */