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>
|
2002-03-27 Jeff Sturm <jsturm@one-point.com>
|
||||||
|
|
||||||
* java/net/PlainDatagramSocketImpl.java
|
* java/net/PlainDatagramSocketImpl.java
|
||||||
|
@ -16,6 +16,13 @@ details. */
|
|||||||
#ifndef ENOPROTOOPT
|
#ifndef ENOPROTOOPT
|
||||||
#define ENOPROTOOPT 109
|
#define ENOPROTOOPT 109
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static inline int
|
||||||
|
close(int s)
|
||||||
|
{
|
||||||
|
return closesocket(s);
|
||||||
|
}
|
||||||
|
|
||||||
#else /* WIN32 */
|
#else /* WIN32 */
|
||||||
#ifdef HAVE_SYS_SOCKET_H
|
#ifdef HAVE_SYS_SOCKET_H
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
@ -22,7 +22,8 @@ details. */
|
|||||||
|
|
||||||
// These functions make the Win32 socket API look more POSIXy
|
// These functions make the Win32 socket API look more POSIXy
|
||||||
static inline int
|
static inline int
|
||||||
close(int s) {
|
close(int s)
|
||||||
|
{
|
||||||
return closesocket(s);
|
return closesocket(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user