diff options
| author | Adam Tkac <atkac@redhat.com> | 2011-05-27 11:07:36 +0200 |
|---|---|---|
| committer | Adam Tkac <atkac@redhat.com> | 2011-05-27 11:07:36 +0200 |
| commit | 36ea44a658236df5c8c9ac78b48d855862078a0a (patch) | |
| tree | b9a3ae2925e21db6a973b9e1ca7196fcdeaa3d0e /bind98-libdns-export.patch | |
| parent | 136022b9f354bbb4e5bb867d49e3600510019097 (diff) | |
| download | bind-36ea44a658236df5c8c9ac78b48d855862078a0a.tar.gz bind-36ea44a658236df5c8c9ac78b48d855862078a0a.tar.xz bind-36ea44a658236df5c8c9ac78b48d855862078a0a.zip | |
Fix compilation of libdns-export.so
Signed-off-by: Adam Tkac <atkac@redhat.com>
Diffstat (limited to 'bind98-libdns-export.patch')
| -rw-r--r-- | bind98-libdns-export.patch | 57 |
1 files changed, 57 insertions, 0 deletions
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, |
