From e010476a7aa4548e47e6d76455cb09d289851ab9 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 8 Oct 2016 19:31:41 +0200 Subject: fix nfs-utils/rpcbind for musl toolchains, patches mostly from Alpine Linux --- .../patches/patch-support_export_hostname_c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 package/nfs-utils/patches/patch-support_export_hostname_c (limited to 'package/nfs-utils/patches/patch-support_export_hostname_c') diff --git a/package/nfs-utils/patches/patch-support_export_hostname_c b/package/nfs-utils/patches/patch-support_export_hostname_c new file mode 100644 index 000000000..731d18fd9 --- /dev/null +++ b/package/nfs-utils/patches/patch-support_export_hostname_c @@ -0,0 +1,20 @@ +--- nfs-utils-1.3.4.orig/support/export/hostname.c 2016-08-03 20:25:15.000000000 +0200 ++++ nfs-utils-1.3.4/support/export/hostname.c 2016-10-08 17:55:01.000000000 +0200 +@@ -384,6 +384,7 @@ host_numeric_addrinfo(const struct socka + + ai = host_pton(buf); + ++#if !definded(__UCLIBC__) && defined(__GLIBC__) + /* + * getaddrinfo(AI_NUMERICHOST) never fills in ai_canonname + */ +@@ -394,7 +395,9 @@ host_numeric_addrinfo(const struct socka + ai = NULL; + } + } ++#endif + + return ai; + } ++ + #endif /* !HAVE_GETNAMEINFO */ -- cgit v1.2.3