You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
904 B

  1. --- a/src/prototypes.h
  2. +++ b/src/prototypes.h
  3. @@ -559,7 +559,7 @@ extern GETNAMEINFO s_getnameinfo;
  4. #endif /* USE_WIN32 */
  5. -int getnameinfo(const struct sockaddr *, int, char *, int, char *, int, int);
  6. +int getnameinfo(const struct sockaddr *, socklen_t, char *, socklen_t, char *, socklen_t, unsigned int);
  7. #endif /* !defined HAVE_GETNAMEINFO */
  8. --- a/src/resolver.c
  9. +++ b/src/resolver.c
  10. @@ -535,8 +535,9 @@ const char *s_gai_strerror(int err) {
  11. /* implementation is limited to functionality needed by stunnel */
  12. #ifndef HAVE_GETNAMEINFO
  13. -int getnameinfo(const struct sockaddr *sa, int salen,
  14. - char *host, int hostlen, char *serv, int servlen, int flags) {
  15. +int getnameinfo(const struct sockaddr *sa, socklen_t salen,
  16. + char *host, socklen_t hostlen, char *serv, socklen_t servlen,
  17. + unsigned int flags) {
  18. #if defined(USE_WIN32) && !defined(_WIN32_WCE)
  19. if(s_getnameinfo)