aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/util/dnsparser.c6
2 files changed, 6 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 38182599f..14360284a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -862,7 +862,7 @@ AS_IF([test x$my_with_libidn2 = x1],
862 LIBS="-lidn2 $LIBS" 862 LIBS="-lidn2 $LIBS"
863 AC_DEFINE_UNQUOTED([HAVE_LIBIDN2], 863 AC_DEFINE_UNQUOTED([HAVE_LIBIDN2],
864 [1], 864 [1],
865 [Define to 1 if you have 'libidn2' (-lidn).])], 865 [Define to 1 if you have 'libidn2' (-lidn2).])],
866 [MISSING_DEPS="${MISSING_DEPS}${MISSING_SEP}libidn2" 866 [MISSING_DEPS="${MISSING_DEPS}${MISSING_SEP}libidn2"
867 MISSING_SEP=", "])]) 867 MISSING_SEP=", "])])
868AM_CONDITIONAL(HAVE_LIBIDN2, test x$working_libidn2 = x1) 868AM_CONDITIONAL(HAVE_LIBIDN2, test x$working_libidn2 = x1)
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