Skip Menu |
 

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
From: tlyu@mit.edu
Subject: CVS Commit
* dnsglue.h: Define ns_rr_class to ns_rr_cl if ns_rr_class doesn't
exist.


To generate a diff of this commit:



cvs diff -r5.418 -r5.419 krb5/src/lib/krb5/os/ChangeLog
cvs diff -r5.1 -r5.2 krb5/src/lib/krb5/os/dnsglue.h
From: tlyu@mit.edu
Subject: CVS Commit
pullup from trunk


To generate a diff of this commit:



cvs diff -r5.412.2.5 -r5.412.2.6 krb5/src/lib/krb5/os/ChangeLog
cvs diff -r5.1 -r5.1.4.1 krb5/src/lib/krb5/os/dnsglue.h