summaryrefslogtreecommitdiff
path: root/package/nfs-utils/patches/patch-support_export_hostname_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-08 19:31:41 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-08 19:31:57 +0200
commite010476a7aa4548e47e6d76455cb09d289851ab9 (patch)
tree162d1e5e60718ccebe31c5486e37440e0cdd597e /package/nfs-utils/patches/patch-support_export_hostname_c
parentac9ec140fbb81e12f9121c21b0d39b5747d6c37c (diff)
fix nfs-utils/rpcbind for musl toolchains, patches mostly from Alpine Linux
Diffstat (limited to 'package/nfs-utils/patches/patch-support_export_hostname_c')
-rw-r--r--package/nfs-utils/patches/patch-support_export_hostname_c20
1 files changed, 20 insertions, 0 deletions
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 */