From: Daniel Salzman Date: Tue, 30 Dec 2025 11:06:10 +0000 (+0100) Subject: server: fix compilation if redis not enabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=63768361b4310ce7d263e158e8f55ca9f7438f36;p=thirdparty%2Fknot-dns.git server: fix compilation if redis not enabled --- diff --git a/src/knot/server/server.c b/src/knot/server/server.c index e632056d66..6ff377b20a 100644 --- a/src/knot/server/server.c +++ b/src/knot/server/server.c @@ -1781,6 +1781,7 @@ static int reconfigure_remote_pool(conf_t *conf, server_t *server) hash = curr_hash; } +#ifdef ENABLE_REDIS val = conf_get(conf, C_DB, C_ZONE_DB_LISTEN); if (val.code == KNOT_EOK) { static uint64_t hash = 0; @@ -1804,6 +1805,7 @@ static int reconfigure_remote_pool(conf_t *conf, server_t *server) } hash = curr_hash; } +#endif // ENABLE_REDIS val = conf_get(conf, C_SRV, C_RMT_RETRY_DELAY); int delay_ms = conf_int(&val);