From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9832cd23166b3b34 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1993-02-25 20:26:47 PST Newsgroups: comp.unix.osf.osf1 Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!news.dfn.de!news.uni-bielefeld.de!ro From: ro@techfak.uni-bielefeld.de (Rainer Orth) Subject: Re: In search for Hesiod ports to DEC's OSF/1 Sender: news@hermes.hrz.uni-bielefeld.de (News Administrator) Message-ID: In-Reply-To: levanon@browneyes.ucs.indiana.edu's message of Thu, 25 Feb 1993 14:19:59 GMT Date: Fri, 26 Feb 1993 04:26:47 GMT Distribution: comp References: Nntp-Posting-Host: anemone.techfak.uni-bielefeld.de Organization: Technical Computer Science, University of Bielefeld In article levanon@browneyes.ucs.indiana.edu (Jacob Levanon) writes: > Has anyone out there ported or is in the process of porting > Hesiod routines to DEC's OSF/1? Porting hesiod 1.2 itself was easy: just change two instances of u_long/long to u_int/int and hesinfo works as expected. I had to make many similar changes to bind 4.9 alpha to get a working version of it's libresolv.a. You can probably use DEC's libresolv from 4.8.x until 4.9 is generally available, although I haven't tried that. Rainer =================================================================== RCS file: hesiod/RCS/resolve.c,v retrieving revision 1.4 diff -u -r1.4 hesiod/resolve.c --- hesiod/resolve.c 1988/08/08 01:59:27 1.4 +++ hesiod/resolve.c 1993/02/15 22:49:35 @@ -39,7 +39,7 @@ cp += sizeof(u_short/*type*/); rr->class = _getshort(cp); - cp += sizeof(u_short/*class*/) + sizeof(u_long/*ttl*/); + cp += sizeof(u_short/*class*/) + sizeof(u_int/*ttl*/); rr->dlen = (int)_getshort(cp); rr->data = cp + sizeof(u_short/*dlen*/); @@ -141,7 +141,7 @@ { static char qbuf[PACKETSZ], abuf[PACKETSZ]; register int n; - register long res_options = _res.options; + register int res_options = _res.options; register int res_retrans = _res.retrans; register int res_retry = _res.retry; -- ----------------------------------------------------------------------------- Rainer Orth, Technical Computer Science, University of Bielefeld Internet: ro@TechFak.Uni-Bielefeld.DE