diff options
| author | Ariadne Conill <ariadne@dereferenced.org> | 2020-01-17 21:39:53 +0000 |
|---|---|---|
| committer | Ariadne Conill <ariadne@dereferenced.org> | 2020-01-17 21:41:05 +0000 |
| commit | 04c412846d31baf2118c7d65e903bbb3a368fbca (patch) | |
| tree | 28b495962197b78bc66b4eec767f711a38843d28 /testing/paris-traceroute/fix-idn.patch | |
| parent | 65f8dc122b88efc95fc426f8bc38c093ba27bf2f (diff) | |
| download | aports-04c412846d31baf2118c7d65e903bbb3a368fbca.tar.bz2 aports-04c412846d31baf2118c7d65e903bbb3a368fbca.tar.xz | |
testing/paris-traceroute: new aport
Diffstat (limited to 'testing/paris-traceroute/fix-idn.patch')
| -rw-r--r-- | testing/paris-traceroute/fix-idn.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/testing/paris-traceroute/fix-idn.patch b/testing/paris-traceroute/fix-idn.patch new file mode 100644 index 0000000000..3a6a650096 --- /dev/null +++ b/testing/paris-traceroute/fix-idn.patch @@ -0,0 +1,24 @@ +Only enable AI_IDN if it is actually defined. + +Upstream-status: Pending +--- libparistraceroute-0.93.orig/libparistraceroute/address.c ++++ libparistraceroute-0.93/libparistraceroute/address.c +@@ -37,8 +37,6 @@ + + #endif + +-#define AI_IDN 0x0040 +- + static void ip_dump(int family, const void * ip, char * buffer, size_t buffer_len) { + if (inet_ntop(family, ip, buffer, buffer_len)) { + printf("%s", buffer); +@@ -58,7 +56,9 @@ + // Initialize hints + memset(&hints, 0, sizeof(hints)); + hints.ai_family = family; ++#ifdef AI_IDN + hints.ai_flags = AI_IDN; ++#endif + + // Convert string hostname / IP into a sequence of addrinfo instances + if ((ret = getaddrinfo(hostname, NULL, &hints, &res)) != 0) { |
