From: Ruben Kerkhof Date: Sun, 7 Aug 2016 11:35:53 +0000 (+0200) Subject: utils_dns.c: fix build on OSX X-Git-Tag: collectd-5.6.0~85 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=41cdd38962d0649941ec2732b02662b05ac0172a utils_dns.c: fix build on OSX utils_dns.c:759:11: error: use of undeclared identifier 'ns_t_apl' case ns_t_apl: return ("APL"); Apparently Apple forgot to add some record types when they bumped the version number of /usr/include/arpa/nameser.h --- diff --git a/src/utils_dns.c b/src/utils_dns.c index e0b8452f..f38a7bd1 100644 --- a/src/utils_dns.c +++ b/src/utils_dns.c @@ -756,10 +756,10 @@ const char *qtype_str(int t) case ns_t_a6: return ("A6"); case ns_t_dname: return ("DNAME"); case ns_t_sink: return ("SINK"); - case ns_t_apl: return ("APL"); case ns_t_tsig: return ("TSIG"); # endif # if __NAMESER >= 20090302 + case ns_t_apl: return ("APL"); case ns_t_ds: return ("DS"); case ns_t_sshfp: return ("SSHFP"); case ns_t_ipseckey: return ("IPSECKEY");