summaryrefslogtreecommitdiffstats
path: root/lib/utils.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/utils.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/utils.h b/lib/utils.h
index fab13fe..e03b473 100644
--- a/lib/utils.h
+++ b/lib/utils.h
@@ -616,4 +616,10 @@ static inline size_t kr_dname_prefixlen(const uint8_t *name, unsigned nlabels)
#endif
);
}
+#if KNOT_VERSION_HEX < 0x030400
+static inline const knot_dname_t * knot_dname_next_label(const knot_dname_t *dname)
+{
+ return knot_wire_next_label(dname, NULL);
+}
+#endif