in_addr_t is not defined on SunOS4...
Alexandre Oliva
oliva@dcc.unicamp.br
Sat Aug 21 06:33:00 GMT 1999
On Aug 21, 1999, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:
> On Aug 21, 1999, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:
>> ... and inet_addr was assumed to return such a type. I've hacked it
>> to explicitly use the return type of inet_addr (__typeof) to
>> initialize laddr, because I'm not sure in_addr_t is supposed to be
>> defined in sys/types.h on all platforms in which it would be useful.
>> Does anybody have an authoritative information?
> After some research, I found out it was only typedef in sys/types.h on
> DU4.0d; I couldn't find it in any other platform I've got, so I'll
> assume it's safe to AC_CHECK_TYPE it.
The default type I had chosen in the posted patch, `struct in_addr',
would not work, since the code assumed an integral type, so I'm
installing this additional change, that makes in a `jint' that, as a
32bit value, should work perfectly well for an IPv4 address.
More information about the Java-patches
mailing list