aboutsummaryrefslogtreecommitdiff
path: root/libs/gnutls/patches
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-18 21:27:47 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2014-09-18 21:28:29 +0200
commit3679eadf79d6b3a2d45d7bf48837afccf055d619 (patch)
treebfe137f93d1185ee7aa49808486f8172fc5b60b0 /libs/gnutls/patches
parentfa78baaeb28aacf9b98d9f6a9b0af115665198ba (diff)
gnutls: do not use uclibc's AI_IDN; it doesn't like it
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'libs/gnutls/patches')
-rw-r--r--libs/gnutls/patches/001-ai-idn-remove.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/gnutls/patches/001-ai-idn-remove.patch b/libs/gnutls/patches/001-ai-idn-remove.patch
new file mode 100644
index 000000000..9acf756af
--- /dev/null
+++ b/libs/gnutls/patches/001-ai-idn-remove.patch
@@ -0,0 +1,15 @@
+diff --git a/src/socket.c b/src/socket.c
+index 82c6252..e2feda9 100644
+--- a/src/socket.c
++++ b/src/socket.c
+@@ -241,10 +241,6 @@ socket_open(socket_st * hd, const char *hostname, const char *service,
+ /* get server name */
+ memset(&hints, 0, sizeof(hints));
+
+-#ifdef AI_IDN
+- hints.ai_flags = AI_IDN|AI_IDN_ALLOW_UNASSIGNED;
+-#endif
+-
+ hints.ai_socktype = udp ? SOCK_DGRAM : SOCK_STREAM;
+ if ((err = getaddrinfo(hostname, service, &hints, &res))) {
+ fprintf(stderr, "Cannot resolve %s:%s: %s\n", hostname,