summaryrefslogtreecommitdiff
path: root/package/nfs-utils/patches/patch-support_export_hostname_c
blob: 731d18fd9faafedb4b7842c8ea9d7c4e4b634512 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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 */