resolve: Silence build warning, when systemd is built without libidn

HAVE_IDN is not defined when systemd is build without it
This commit is contained in:
Torstein Husebø
2016-02-01 21:10:03 +01:00
parent e94968ba72
commit fa9e9f72b9
+1 -1
View File
@@ -220,7 +220,7 @@ int main(int argc, char* argv[]) {
test_hostname_lookup(bus, "poettering.de", AF_INET, NULL);
test_hostname_lookup(bus, "poettering.de", AF_INET6, NULL);
#if HAVE_LIBIDN
#ifdef HAVE_LIBIDN
/* Unsigned A with IDNA conversion necessary */
test_hostname_lookup(bus, "pöttering.de", AF_UNSPEC, NULL);
test_hostname_lookup(bus, "pöttering.de", AF_INET, NULL);