configure.in: Check for in_addr_t in netinet/in.h too.

* configure.in: Check for in_addr_t in netinet/in.h too.  Check
for ip_mreq too.
* acconfig.h: Define HAVE_IN_ADDR_T instead of in_addr_t.
(HAVE_STRUCT_IP_MREQ): Added.
* configure, include/config.h.in: Rebuilt.
* java/net/natInetAddress.cc (aton): Typedef in_addr_t to jint
if needed.
* java/net/natPlainDatagramSocketImpl.cc (McastReq, mcastGrp):
Disable if ip_mreq is not available.

From-SVN: r28798
This commit is contained in:
Alexandre Oliva 1999-08-21 14:26:44 +00:00 committed by Alexandre Oliva
parent 988f5b7014
commit ccfe7e4650
7 changed files with 117 additions and 48 deletions

View file

@ -71,6 +71,9 @@ java::net::InetAddress::aton (jstring host)
blen = 4;
}
#elif defined(HAVE_INET_ADDR)
#if ! HAVE_IN_ADDR_T
typedef jint in_addr_t;
#endif
in_addr_t laddr = inet_addr (hostname);
if (laddr != (in_addr_t)(-1))
{