I didn't plan this well ahead :-/
/* TODO: we might overrun here already, but we need to trust cache anyway...*/
const uint32_t rds_size = rdataset_dematerialized_size(d, &rds->count);
d += KR_CACHE_RR_COUNT_SIZE;
- #if KNOT_VERSION_MINOR >= 9
+ #if KNOT_VERSION_HEX >= 0x020900
rds->size = rds_size;
#endif
if (d + rds_size > data_bound) {
/* TMP: compatibility for using libknot 2.8 API with 2.9. */
-#if KNOT_VERSION_MINOR >= 9
+#if KNOT_VERSION_HEX >= 0x020900
static inline size_t knot_rdataset_size(const knot_rdataset_t *rrs)
{
return rrs->size;
req->qsource.flags.tcp &&
src_opt != NULL &&
knot_edns_get_option(src_opt, KNOT_EDNS_OPTION_TCP_KEEPALIVE
- #if KNOT_VERSION_MINOR >= 9
+ #if KNOT_VERSION_HEX >= 0x020900
, NULL
#endif
) &&
return ctx->state;
const uint8_t *req_nsid = knot_edns_get_option(src_opt, KNOT_EDNS_OPTION_NSID
- #if KNOT_VERSION_MINOR >= 9
+ #if KNOT_VERSION_HEX >= 0x020900
, NULL
#endif
);