inet_net_pton.h 1.1 KB

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