This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Warning: mingw-gcj (3.1 branch) is broken
- From: Adam Megacz <gcj at lists dot megacz dot com>
- To: java at gcc dot gnu dot org
- Cc: Jeff Sturm <jsturm at one-point dot com>
- Date: 28 Mar 2002 13:46:45 -0800
- Subject: Re: Warning: mingw-gcj (3.1 branch) is broken
- Organization: Myself
- References: <Pine.LNX.4.10.10203281554130.8224-100000@mars.deadcafe.org>
Jeff Sturm <jsturm@one-point.com> writes:
> On Thu, 28 Mar 2002, Adam Megacz wrote:
> > ../../../gcc/libjava/java/net/natPlainDatagramSocketImpl.cc:303: `::close'
> > undeclared (first use here)
> I'm afraid I broke this with my socket patch :(
> What do I use to close a datagram socket on win32?
At the top of natPlainSocketImpl.cc, I define:
// These functions make the Win32 socket API look more POSIXy
static inline int
close(int s) {
return closesocket(s);
}
That should work for datagram sockets as well.
- a
--
The web is dead; long live the Internet.
http://www.xwt.org/