commit 83a4ffce0e7bfd43df4511a53d8f3afc408ea276
parent 109303d884b103f5e64151c9dba8a914df9bcdb6
Author: Christian Grothoff <christian@grothoff.org>
Date: Thu, 18 Apr 2019 17:35:31 +0200
only use AI_IDN if supported by platform (fixes #5688)
Diffstat:
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/backend/taler-merchant-httpd.c b/src/backend/taler-merchant-httpd.c
@@ -1462,7 +1462,11 @@ run (void *cls,
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_protocol = IPPROTO_TCP;
- hints.ai_flags = AI_PASSIVE | AI_IDN;
+ hints.ai_flags = AI_PASSIVE
+#ifdef AI_IDN
+ | AI_IDN
+#endif
+ ;
if (0 !=
(ec = getaddrinfo (bind_to,
port_str,