inet_aton.h 418 B

12345678910111213141516171819202122
  1. /*
  2. * inet_aton.h
  3. * prototypes for inet_aton.c
  4. *
  5. */
  6. #ifndef _EGG_COMPAT_INET_ATON_H
  7. #define _EGG_COMPAT_INET_ATON_H
  8. #include "src/main.h"
  9. #include <sys/socket.h>
  10. #include <netinet/in.h>
  11. #include <arpa/inet.h>
  12. #ifndef HAVE_INET_ATON
  13. /* Use our own implementation. */
  14. int egg_inet_aton(const char *cp, struct in_addr *addr);
  15. #else
  16. # define egg_inet_aton inet_aton
  17. #endif
  18. #endif /* !__EGG_COMPAT_INET_ATON_H */