diff options
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 2baa76ef2..55a9ff6c8 100644 --- a/src/util/dnsparser.c +++ b/src/util/dnsparser.c | |||
@@ -25,15 +25,19 @@ | |||
25 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
26 | */ | 26 | */ |
27 | #include "platform.h" | 27 | #include "platform.h" |
28 | #if HAVE_LIBIDN2 | ||
28 | #if HAVE_IDN2_H | 29 | #if HAVE_IDN2_H |
29 | #include <idn2.h> | 30 | #include <idn2.h> |
30 | #elif HAVE_IDN2_IDN2_H | 31 | #elif HAVE_IDN2_IDN2_H |
31 | #include <idn2/idn2.h> | 32 | #include <idn2/idn2.h> |
32 | #elif HAVE_IDNA_H | 33 | #endif |
34 | #elif HAVE_LIBIDN | ||
35 | #if HAVE_IDNA_H | ||
33 | #include <idna.h> | 36 | #include <idna.h> |
34 | #elif HAVE_IDN_IDNA_H | 37 | #elif HAVE_IDN_IDNA_H |
35 | #include <idn/idna.h> | 38 | #include <idn/idna.h> |
36 | #endif | 39 | #endif |
40 | #endif | ||
37 | #if WINDOWS | 41 | #if WINDOWS |
38 | #include <idn-free.h> | 42 | #include <idn-free.h> |
39 | #endif | 43 | #endif |