diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-04 12:19:22 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-12-04 12:19:22 +0000 |
commit | 84ad0cd074a4f7e337d0f4f0d4b1fea5a24bea5f (patch) | |
tree | ab98b518ef39f4e1bf34f6419b72fb033c819ae4 /main/nfs-utils/uclibc-getaddrinfo-canonname.patch | |
parent | 493f103a5352da545c8378ec2757ed9609b09856 (diff) | |
download | aports-84ad0cd074a4f7e337d0f4f0d4b1fea5a24bea5f.tar.bz2 aports-84ad0cd074a4f7e337d0f4f0d4b1fea5a24bea5f.tar.xz |
main/nfs-utils: fix previous patch
Diffstat (limited to 'main/nfs-utils/uclibc-getaddrinfo-canonname.patch')
-rw-r--r-- | main/nfs-utils/uclibc-getaddrinfo-canonname.patch | 10 |
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; } } |