* java/net/natPlainDatagramSocketImpl.cc (close): New function.
* java/net/natPlainSocketImpl.cc (close): Indentation fix.
From-SVN: r51563
+2002-03-29 Tom Tromey <tromey@redhat.com>
+
+ * java/net/natPlainDatagramSocketImpl.cc (close): New function.
+ * java/net/natPlainSocketImpl.cc (close): Indentation fix.
+
2002-03-27 Jeff Sturm <jsturm@one-point.com>
* java/net/PlainDatagramSocketImpl.java
#include <config.h>
-#include<platform.h>
+#include <platform.h>
#ifdef WIN32
#include <errno.h>
#ifndef ENOPROTOOPT
#define ENOPROTOOPT 109
#endif
+
+static inline int
+close(int s)
+{
+ return closesocket(s);
+}
+
#else /* WIN32 */
#ifdef HAVE_SYS_SOCKET_H
#include <sys/socket.h>
// These functions make the Win32 socket API look more POSIXy
static inline int
-close(int s) {
+close(int s)
+{
return closesocket(s);
}