Fix mingw32 builds.

From-SVN: r71299
This commit is contained in:
Anthony Green 2003-09-11 12:30:05 +00:00 committed by Anthony Green
parent 6b00c969c4
commit cda85569ad
3 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,10 @@
2003-09-10 Anthony Green <green@redhat.com>
* gnu/java/net/natPlainDatagramSocketImplWin32.cc (peekData):
Specify full name when referencing ::java::net::InetAddress.
* gnu/java/net/natPlainSocketImplWin32.cc (accept): Ditto.
Fix argument type.
2003-09-10 Michael Koch <konqueror@gmx.de>
* acconfig.h (__NO_MATH_INLINES): Removed.

View File

@ -235,7 +235,7 @@ gnu::java::net::PlainDatagramSocketImpl::peekData(::java::net::DatagramPacket *p
else
throw new ::java::net::SocketException (JvNewStringUTF ("invalid family"));
p->setAddress (new InetAddress (raddr, NULL));
p->setAddress (new ::java::net::InetAddress (raddr, NULL));
p->setPort (rport);
p->setLength ((jint) retlen);
return rport;

View File

@ -228,7 +228,7 @@ gnu::java::net::PlainSocketImpl::listen (jint backlog)
}
void
gnu::java::net::PlainSocketImpl::accept (::java::net::PlainSocketImpl *s)
gnu::java::net::PlainSocketImpl::accept (gnu::java::net::PlainSocketImpl *s)
{
union SockAddr u;
socklen_t addrlen = sizeof(u);
@ -312,7 +312,7 @@ gnu::java::net::PlainSocketImpl::accept (::java::net::PlainSocketImpl *s)
s->fnum = new_socket;
s->localport = localport;
s->address = new InetAddress (raddr, NULL);
s->address = new ::java::net::InetAddress (raddr, NULL);
s->port = rport;
return;