Date: | Mon, 31 Jan 2005 16:39:35 -0600 |
From: | "Douglas E. Engert" <deengert@anl.gov> |
To: | krb5-bugs@mit.edu |
Subject: | krb5-1.4.0 dnsglue.c on Solaris 5.7 missing ns_rr_class |
krb5-1.4.0 compiles but will not link because
Solaris 5.7 does not define ns_rr_class in arpa/nameser.h.
So ns_rr_class is assumed to be an external program.
But ns_rr_cl is defined. Looks like this was the previous
name for ns_rr_class.
Suggested fix:
--- ,dnsglue.c Fri Jan 14 18:10:53 2005
+++ dnsglue.c Mon Jan 31 16:21:03 2005
@@ -172,7 +172,11 @@
if (len < 0)
return -1;
ds->cur_ans++;
+#ifndef ns_rr_class
+ if (ds->nclass == ns_rr_cl(rr)
+#else
if (ds->nclass == ns_rr_class(rr)
+#endif
&& ds->ntype == ns_rr_type(rr)) {
*pp = ns_rr_rdata(rr);
*lenp = ns_rr_rdlen(rr);
This compiles, but I have not testd if it works yet.
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444
Solaris 5.7 does not define ns_rr_class in arpa/nameser.h.
So ns_rr_class is assumed to be an external program.
But ns_rr_cl is defined. Looks like this was the previous
name for ns_rr_class.
Suggested fix:
--- ,dnsglue.c Fri Jan 14 18:10:53 2005
+++ dnsglue.c Mon Jan 31 16:21:03 2005
@@ -172,7 +172,11 @@
if (len < 0)
return -1;
ds->cur_ans++;
+#ifndef ns_rr_class
+ if (ds->nclass == ns_rr_cl(rr)
+#else
if (ds->nclass == ns_rr_class(rr)
+#endif
&& ds->ntype == ns_rr_type(rr)) {
*pp = ns_rr_rdata(rr);
*lenp = ns_rr_rdlen(rr);
This compiles, but I have not testd if it works yet.
--
Douglas E. Engert <DEEngert@anl.gov>
Argonne National Laboratory
9700 South Cass Avenue
Argonne, Illinois 60439
(630) 252-5444