On Fri, Jun 20, 2003 at 02:03:23PM +0200, Oliver Graf wrote:
> ok, diving into glibc2... the prototype of gethostbyaddr_r (which
> would be the right thing to use is:
> 
> extern int gethostbyaddr_r (__const void *__restrict __addr, __socklen_t __len,
>                             int __type,
>                             struct hostent *__restrict __result_buf,
>                             char *__restrict __buf, size_t __buflen,
>                             struct hostent **__restrict __result,
>                             int *__restrict __h_errnop) __THROW;
> 
> i.e. it has an additional errno pointer parameter.
> 
> So I will make up a configure patch for this.

Mhhh... I think the maintainers can fix this easy on their own. The
problem is that the gethostbyaddr checks got this sequence: SYSV, GNU,
BSD. But my system has GNU (reentrant) and BSD (crash-and-burn).

So just check first for the unsave BSD (perhaps issue a big DON'T USE
THREADS WITH THIS?) and then check for SYSV or GNU style
gethostbyaddr_r.

gethostbyname seems to have semiliar issues.

Oliver.


- 
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to