[openbeosnetteam] Re: Fix for resolving host names

  • From: "Philippe Houdoin" <philippe.houdoin@xxxxxxx>
  • To: openbeosnetteam@xxxxxxxxxxxxx
  • Date: Tue, 03 Feb 2004 00:31:00 GMT

> Ok, grep'ed all the files in libnet for h_errno, and the declaration 
> in 
> gethostnamadr.c was the only one that did not have #undef h_errno.    
> I 
> made this change, compiled, and it fixed the issue.
> 
> Waldemar, if you want to just go into the CVS repository and add that 
> #undef, the problem seg fault problem will be fixed.  I dont know how 
> to submit a change!

Please, don't submit this.
That's a workaround, our issue here is: why h_errno TLS support is not 
working.
I'm investigating it right now.

If we can't soon come with the right fix, we then could swtich back to 
a global non thread-safe h_errno version, but I can't see why we 
couldn't fix it.
How optimistic am I tonight!?
:-)

- Philippe
 

--
Fortune Cookie Says:

Nothing astonishes men so much as common sense and plain dealing.

Other related posts: