patch-support_export_hostname_c 523 B

1234567891011121314151617181920
  1. --- nfs-utils-1.3.4.orig/support/export/hostname.c 2016-08-03 20:25:15.000000000 +0200
  2. +++ nfs-utils-1.3.4/support/export/hostname.c 2016-10-08 17:55:01.000000000 +0200
  3. @@ -384,6 +384,7 @@ host_numeric_addrinfo(const struct socka
  4. ai = host_pton(buf);
  5. +#if !definded(__UCLIBC__) && defined(__GLIBC__)
  6. /*
  7. * getaddrinfo(AI_NUMERICHOST) never fills in ai_canonname
  8. */
  9. @@ -394,7 +395,9 @@ host_numeric_addrinfo(const struct socka
  10. ai = NULL;
  11. }
  12. }
  13. +#endif
  14. return ai;
  15. }
  16. +
  17. #endif /* !HAVE_GETNAMEINFO */