in_addr_t is not defined on SunOS4...
Alexandre Oliva
oliva@dcc.unicamp.br
Sat Aug 21 07:18: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:
>> On Aug 21, 1999, Alexandre Oliva <oliva@dcc.unicamp.br> wrote:
>> 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.
And after some more research, now with help from the compiler, I found
out Solaris7 does typedef in_addr_t in netinet/in.h, and the `jint'
#define screwed everything up :-(
This patch also fixes another problem on SunOS: struct ip_mreq is not
defined anywhere, so I guess IP Multicast is not available. The
work-around was to disable this feature when this struct was not
defined.
I'm checking in the following patch (this one, tested on all platforms
I've got :-), in the trunk and the branch:
More information about the Java-patches
mailing list