mirror of
https://github.com/openwrt/packages.git
synced 2025-12-24 08:28:20 +04:00
Signed-off-by: W. Michael Petullo <mike@flyn.org> [refresh patch] Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
21 lines
465 B
Diff
21 lines
465 B
Diff
--- a/support/export/hostname.c
|
|
+++ b/support/export/hostname.c
|
|
@@ -350,7 +350,9 @@ host_numeric_addrinfo(const struct socka
|
|
|
|
/*
|
|
* getaddrinfo(AI_NUMERICHOST) never fills in ai_canonname
|
|
+ * ...well, it does on uclibc.
|
|
*/
|
|
+#ifndef __UCLIBC__
|
|
if (ai != NULL) {
|
|
free(ai->ai_canonname); /* just in case */
|
|
ai->ai_canonname = strdup(buf);
|
|
@@ -359,6 +361,7 @@ host_numeric_addrinfo(const struct socka
|
|
ai = NULL;
|
|
}
|
|
}
|
|
+#endif
|
|
|
|
return ai;
|
|
}
|