inet_ntop.h 431 B

12345678910111213141516171819202122
  1. /*
  2. * inet_ntop.h --
  3. *
  4. * prototypes for inet_ntop.c
  5. */
  6. #ifndef _EGG_COMPAT_INET_NTOP_H
  7. #define _EGG_COMPAT_INET_NTOP_H
  8. #include "src/common.h"
  9. #include <sys/types.h>
  10. #include <sys/socket.h>
  11. #include <netinet/in.h>
  12. #include <arpa/inet.h>
  13. #ifndef HAVE_INET_NTOP
  14. const char *egg_inet_ntop(int af, const void *src, char *dst, socklen_t size);
  15. #else
  16. # define egg_inet_ntop inet_ntop
  17. #endif
  18. #endif /* !_EGG_COMPAT_INET_NTOP_H */