133-inet6-scoped-getnameinfo.patch 786 B

1234567891011121314151617181920212223242526
  1. --- a/libc/inet/resolv.c
  2. +++ b/libc/inet/resolv.c
  3. @@ -317,6 +317,7 @@ Domain name in a message can be represen
  4. #include <sys/utsname.h>
  5. #include <sys/un.h>
  6. #include <sys/stat.h>
  7. +#include <net/if.h>
  8. #include <bits/uClibc_mutex.h>
  9. #include "internal/parse_config.h"
  10. @@ -1861,7 +1862,6 @@ int getnameinfo(const struct sockaddr *s
  11. c = inet_ntop(AF_INET6,
  12. (const void *) &sin6p->sin6_addr,
  13. host, hostlen);
  14. -#if 0
  15. /* Does scope id need to be supported? */
  16. uint32_t scopeid;
  17. scopeid = sin6p->sin6_scope_id;
  18. @@ -1898,7 +1898,6 @@ int getnameinfo(const struct sockaddr *s
  19. return EAI_SYSTEM;
  20. memcpy(host + real_hostlen, scopebuf, scopelen + 1);
  21. }
  22. -#endif
  23. }
  24. #endif /* __UCLIBC_HAS_IPV6__ */
  25. #if defined __UCLIBC_HAS_IPV4__