This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Warning: mingw-gcj (3.1 branch) is broken



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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]