Warning: mingw-gcj (3.1 branch) is broken

Adam Megacz gcj@lists.megacz.com
Thu Mar 28 13:51:00 GMT 2002


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/



More information about the Java mailing list