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:
parent
7d9b63781d
commit
6676c77f01
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user