develooper Front page | perl.perl5.porters | Postings from March 2001

Re: [PATCH 5.7.0] compiling on OS/2: 5.6.1 too

Thread Previous | Thread Next
From:
Jarkko Hietaniemi
Date:
March 3, 2001 11:25
Subject:
Re: [PATCH 5.7.0] compiling on OS/2: 5.6.1 too
Message ID:
20010303132542.Q9739@chaos.wustl.edu
On Sat, Mar 03, 2001 at 02:22:14PM -0500, Ilya Zakharevich wrote:
> On Sat, Mar 03, 2001 at 11:17:38AM -0600, Jarkko Hietaniemi wrote:
> > > A similar patch is needed for 5.6.1 (only the first two chunks omited).
> > > 
> > > I put it below:
> > 
> > Thanks, applied.  (Though in the current 5.6.1-to-be copy the get*()
> > function were typed as returning struct hostent * etc, not void*, so
> > that hunk failed, had to add the #ifndef manually.
> 
> Oups, then this part of the patch is not needed, an in fact it hurts a
> lot.  Here are the hairy details:

Sooo...here's what both 5.6.1-to-be and bleedperl look right now:

...
        ((void (*)(int)) fcn) (arg);
}

#ifndef HAS_GETHOSTENT          /* Older versions of EMX did not have it... */
void *  gethostent()    { return tcp0("GETHOSTENT");  }
void *  getnetent()     { return tcp0("GETNETENT");   }
void *  getprotoent()   { return tcp0("GETPROTOENT"); }
void *  getservent()    { return tcp0("GETSERVENT");  }
#endif

void    sethostent(x)   { tcp1("SETHOSTENT",  x); }
...

So shall I (1) remove the #ifndef and (2) make them to be struct *blahent?

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About