]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
resolve: fix build without gcrypt 7979/head
authorMichael Biebl <mbiebl@gmail.com>
Wed, 24 Jan 2018 03:58:04 +0000 (12:58 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 24 Jan 2018 03:59:22 +0000 (12:59 +0900)
Follow-up for 73a4cd17c37f61159a365e55bdd5ff2b8327d439.

Fixes #7977.

src/resolve/resolved-dns-packet.c

index b6feddba98a604a60db4013ef990032448326a44..2067dd5182aae63b3ba2c27b1f7fe8ae2e607d00 100644 (file)
@@ -756,7 +756,7 @@ int dns_packet_append_opt(DnsPacket *p, uint16_t max_udp_size, bool edns0_do, in
                 static const uint8_t rfc6975[] = {
 
                         0, 5, /* OPTION_CODE: DAU */
-#if GCRYPT_VERSION_NUMBER >= 0x010600
+#if HAVE_GCRYPT && GCRYPT_VERSION_NUMBER >= 0x010600
                         0, 7, /* LIST_LENGTH */
 #else
                         0, 6, /* LIST_LENGTH */
@@ -767,7 +767,7 @@ int dns_packet_append_opt(DnsPacket *p, uint16_t max_udp_size, bool edns0_do, in
                         DNSSEC_ALGORITHM_RSASHA512,
                         DNSSEC_ALGORITHM_ECDSAP256SHA256,
                         DNSSEC_ALGORITHM_ECDSAP384SHA384,
-#if GCRYPT_VERSION_NUMBER >= 0x010600
+#if HAVE_GCRYPT && GCRYPT_VERSION_NUMBER >= 0x010600
                         DNSSEC_ALGORITHM_ED25519,
 #endif