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

View File

@ -1,3 +1,8 @@
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

View File

@ -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>

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);
}