natPlainDatagramSocketImpl.cc (close): New function.

* java/net/natPlainDatagramSocketImpl.cc (close): New function.
	* java/net/natPlainSocketImpl.cc (close): Indentation fix.

From-SVN: r51563
This commit is contained in:
Tom Tromey
2002-03-29 17:07:59 +00:00
committed by Tom Tromey
parent 7d9b63781d
commit 6676c77f01
3 changed files with 15 additions and 2 deletions
@@ -8,7 +8,7 @@ details. */
#include <config.h>
#include<platform.h>
#include <platform.h>
#ifdef WIN32
#include <errno.h>
@@ -16,6 +16,13 @@ details. */
#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>
+2 -1
View File
@@ -22,7 +22,8 @@ details. */
// These functions make the Win32 socket API look more POSIXy
static inline int
close(int s) {
close(int s)
{
return closesocket(s);
}