]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/test/test-dns-domain.c
resolved: support libidn2 in addition to libidn
[thirdparty/systemd.git] / src / test / test-dns-domain.c
index a7cd8e4b5131874d62b5535c1afd6d62941d50d9..d86add94db5daf9a12aa1c5c16a859b3728e0365 100644 (file)
@@ -608,7 +608,7 @@ static void test_dns_name_common_suffix(void) {
 }
 
 static void test_dns_name_apply_idna_one(const char *s, const char *result) {
-#ifdef HAVE_LIBIDN
+#if defined(HAVE_LIBIDN2) || defined(HAVE_LIBIDN)
         _cleanup_free_ char *buf = NULL;
         assert_se(dns_name_apply_idna(s, &buf) >= 0);
         assert_se(dns_name_equal(buf, result) > 0);