aboutsummaryrefslogtreecommitdiffstats
path: root/main/nfs-utils/uclibc-getaddrinfo-canonname.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/nfs-utils/uclibc-getaddrinfo-canonname.patch')
-rw-r--r--main/nfs-utils/uclibc-getaddrinfo-canonname.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/main/nfs-utils/uclibc-getaddrinfo-canonname.patch b/main/nfs-utils/uclibc-getaddrinfo-canonname.patch
index 0811958333..ae26726ea1 100644
--- a/main/nfs-utils/uclibc-getaddrinfo-canonname.patch
+++ b/main/nfs-utils/uclibc-getaddrinfo-canonname.patch
@@ -4,21 +4,21 @@
.ai_protocol = (int)IPPROTO_UDP,
.ai_flags = AI_NUMERICHOST,
.ai_family = AF_UNSPEC,
-+ .ai_socktype = 0,
++ .ai_socktype = 0,
};
struct sockaddr_in sin;
int error, inet4;
-@@ -382,7 +383,9 @@
+@@ -348,7 +349,9 @@
/*
* getaddrinfo(AI_NUMERICHOST) never fills in ai_canonname
-+ * ...well, it does on uclibc.
++ * ... well it does on __UCLIBC__
*/
+#ifndef __UCLIBC__
if (ai != NULL) {
+ free(ai->ai_canonname); /* just in case */
ai->ai_canonname = strdup(buf);
- if (ai->ai_canonname == NULL) {
-@@ -390,6 +393,7 @@
+@@ -357,6 +360,7 @@
ai = NULL;
}
}