diff options
author | Nils Gillmann <ng0@n0.is> | 2018-10-21 17:48:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-10-25 12:01:28 +0200 |
commit | 0a97ba60f4f09558b0c2a4b8d2c09e6ff7bfd112 (patch) | |
tree | ce9503de2771a0a41016c870014ff2ac108e8e7b /src/util/dnsparser.c | |
parent | 70b9b7a3845340c2ea67c115fd81215dee59e870 (diff) | |
download | gnunet-0a97ba60f4f09558b0c2a4b8d2c09e6ff7bfd112.tar.gz gnunet-0a97ba60f4f09558b0c2a4b8d2c09e6ff7bfd112.zip |
libidn + libidn2 support, as proposed by WJ Liu / multiSnow in a github gist.
Signed-off-by: Nils Gillmann <ng0@n0.is>
Diffstat (limited to 'src/util/dnsparser.c')
-rw-r--r-- | src/util/dnsparser.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/util/dnsparser.c b/src/util/dnsparser.c index 24f1b18cf..79d723f12 100644 --- a/src/util/dnsparser.c +++ b/src/util/dnsparser.c | |||
@@ -17,13 +17,17 @@ | |||
17 | */ | 17 | */ |
18 | 18 | ||
19 | /** | 19 | /** |
20 | * @file dns/dnsparser.c | 20 | * @file util/dnsparser.c |
21 | * @brief helper library to parse DNS packets. | 21 | * @brief helper library to parse DNS packets. |
22 | * @author Philipp Toelke | 22 | * @author Philipp Toelke |
23 | * @author Christian Grothoff | 23 | * @author Christian Grothoff |
24 | */ | 24 | */ |
25 | #include "platform.h" | 25 | #include "platform.h" |
26 | #if defined(HAVE_LIBIDN2) | ||
27 | #include <idn2.h> | ||
28 | #elif defined(HAVE_LIBIDN) | ||
26 | #include <idna.h> | 29 | #include <idna.h> |
30 | #endif | ||
27 | #if WINDOWS | 31 | #if WINDOWS |
28 | #include <idn-free.h> | 32 | #include <idn-free.h> |
29 | #endif | 33 | #endif |