on DU4.0d/alpha, gethostbyname_r is only declared with -D_REENTRANT

Tom Tromey tromey@cygnus.com
Sat Jul 31 17:40:00 GMT 1999


>>>>> "Alexandre" == Alexandre Oliva <oliva@dcc.unicamp.br> writes:

>> I think we ought to define _REENTRANT whenever we are using POSIX
>> threads.

Alexandre> The point is that I was *not* using POSIX threads.
Alexandre> Maybe we shouldn't use gethostbyname_r in this case...

Ah, ok.  There is no point in using gethostbyname_r unless we are also
using POSIX threads.  We don't need reentrancy when there is only a
single thread.

Tom


More information about the Java mailing list