fake-getnameinfo.h 409 B

12345678910111213141516
  1. #ifndef TINC_FAKE_GETNAMEINFO_H
  2. #define TINC_FAKE_GETNAMEINFO_H
  3. #if !HAVE_DECL_GETNAMEINFO
  4. int getnameinfo(const struct sockaddr *sa, size_t salen, char *host,
  5. size_t hostlen, char *serv, size_t servlen, int flags);
  6. #endif /* !HAVE_GETNAMEINFO */
  7. #ifndef NI_MAXSERV
  8. # define NI_MAXSERV 32
  9. #endif /* !NI_MAXSERV */
  10. #ifndef NI_MAXHOST
  11. # define NI_MAXHOST 1025
  12. #endif /* !NI_MAXHOST */
  13. #endif