]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Handle old <arpa/nameser.h> with old API
authorMark Andrews <marka@isc.org>
Wed, 29 Mar 2023 23:49:13 +0000 (10:49 +1100)
committerOndřej Surý <ondrej@isc.org>
Mon, 3 Apr 2023 13:31:56 +0000 (13:31 +0000)
Define the types and classes we use from the new API.

bin/tests/system/rpz/testlib/test-data.h

index d8027f8b27ca451de633fed8fcfafc98cdf926f8..63ae0f6cca8e862e94328a41df570d596b19095b 100644 (file)
 #define LIBRPZ_LIB_OPEN 2
 #include <dns/librpz.h>
 
+#if __NAMESER < 19991006
+/*
+ * If the new API is not available define the values we use.
+ */
+
+#define ns_c_in 1
+
+#define ns_t_invalid 0
+#define ns_t_a      1
+#define ns_t_cname   5
+#define ns_t_txt     16
+#define ns_t_aaaa    28
+#define ns_t_dname   39
+
+#endif
+
 #include "trpz.h"
 
 #define NODE_FLAG_IPV6_ADDRESS 0x1