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 @@ * @author Christian Grothoff */ #include "platform.h" +#if HAVE_LIBIDN2 #if HAVE_IDN2_H #include <idn2.h> #elif HAVE_IDN2_IDN2_H #include <idn2/idn2.h> -#elif HAVE_IDNA_H +#endif +#elif HAVE_LIBIDN +#if HAVE_IDNA_H #include <idna.h> #elif HAVE_IDN_IDNA_H #include <idn/idna.h> #endif +#endif #if WINDOWS #include <idn-free.h> #endif |