summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-10-25 15:05:21 +0200
committerChristian Grothoff <christian@grothoff.org>2018-10-25 15:05:21 +0200
commit8a4b969fd2e9fb399dfd1d9d1569e95a77d599bb (patch)
treec262d6cff5f4d795270005366417b67d08549c7c /src
parentb64879a11e2062b78e984b8e5c22dc26ba224668 (diff)
cleaning up configure, in particular the idn.h checks
Diffstat (limited to 'src')
-rw-r--r--src/util/dnsparser.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/util/dnsparser.c b/src/util/dnsparser.c
index 79d723f12..2d2354222 100644
--- a/src/util/dnsparser.c
+++ b/src/util/dnsparser.c
@@ -1,6 +1,6 @@
/*
This file is part of GNUnet
- Copyright (C) 2010-2014 GNUnet e.V.
+ Copyright (C) 2010-2014, 2018 GNUnet e.V.
GNUnet is free software: you can redistribute it and/or modify it
under the terms of the GNU Affero General Public License as published
@@ -23,10 +23,14 @@
* @author Christian Grothoff
*/
#include "platform.h"
-#if defined(HAVE_LIBIDN2)
+#if HAVE_IDN2_H
#include <idn2.h>
-#elif defined(HAVE_LIBIDN)
+#elif HAVE_IDN2_IDN2_H
+#include <idn2/idn2.h>
+#elif HAVE_IDNA_H
#include <idna.h>
+#elif HAVE_IDN_IDNA_H
+#include <idn/idna.h>
#endif
#if WINDOWS
#include <idn-free.h>