From 36ea44a658236df5c8c9ac78b48d855862078a0a Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Fri, 27 May 2011 11:07:36 +0200 Subject: Fix compilation of libdns-export.so Signed-off-by: Adam Tkac --- bind98-libdns-export.patch | 57 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 bind98-libdns-export.patch (limited to 'bind98-libdns-export.patch') diff --git a/bind98-libdns-export.patch b/bind98-libdns-export.patch new file mode 100644 index 0000000..3e7ee6c --- /dev/null +++ b/bind98-libdns-export.patch @@ -0,0 +1,57 @@ +diff -up bind-9.8.0-P2/lib/dns/masterdump.c.libdns-export bind-9.8.0-P2/lib/dns/masterdump.c +--- bind-9.8.0-P2/lib/dns/masterdump.c.libdns-export 2011-05-27 10:48:10.216765461 +0200 ++++ bind-9.8.0-P2/lib/dns/masterdump.c 2011-05-27 10:48:50.428765471 +0200 +@@ -700,6 +700,26 @@ dns_master_questiontotext(dns_name_t *ow + ISC_FALSE, target)); + } + ++static const char *trustnames[] = { ++ "none", ++ "pending-additional", ++ "pending-answer", ++ "additional", ++ "glue", ++ "answer", ++ "authauthority", ++ "authanswer", ++ "secure", ++ "local" /* aka ultimate */ ++}; ++ ++const char * ++dns_trust_totext(dns_trust_t trust) { ++ if (trust >= sizeof(trustnames)/sizeof(*trustnames)) ++ return ("bad"); ++ return (trustnames[trust]); ++} ++ + #ifdef BIND9 + /* + * Print an rdataset. 'buffer' is a scratch buffer, which must have been +@@ -835,26 +855,6 @@ dump_order_compare(const void *a, const + + #define MAXSORT 64 + +-static const char *trustnames[] = { +- "none", +- "pending-additional", +- "pending-answer", +- "additional", +- "glue", +- "answer", +- "authauthority", +- "authanswer", +- "secure", +- "local" /* aka ultimate */ +-}; +- +-const char * +-dns_trust_totext(dns_trust_t trust) { +- if (trust >= sizeof(trustnames)/sizeof(*trustnames)) +- return ("bad"); +- return (trustnames[trust]); +-} +- + static isc_result_t + dump_rdatasets_text(isc_mem_t *mctx, dns_name_t *name, + dns_rdatasetiter_t *rdsiter, dns_totext_ctx_t *ctx, -- cgit