On Fri, 15 Sep 2000 16:51:40 +0200, you wrote:


> OK, makes sense.
> 
> > I solve this by critical sections around the calls and the use of the
> > return data. In case of the gethost* calls I use in case of __linux__
> > the non-portable functions gethostbyname_r and gethostbyaddr_r.
> 
> First of all even if these function only existed on Linux, 
> which is not the case since Solaris have them too, it would
> be preferable to add a test in configure instead.

Exactly, but according to my knowledge (Steven's Unix Network
Programming) the gethostbyaddr_r() is different on Solaris and other
platforms. Different arguments and so. A bit hard to make a configure
test unles you put your knowledge of platforms in. Tht's why I thougt
an "ifdef <platform>" isn't al that different.

Rein.
-- 
Rein Klazes
[EMAIL PROTECTED]

Reply via email to