src/solaris/native/java/net/solaris_close.c
Print this page
*** 26,35 ****
--- 26,37 ----
#include <errno.h>
#include <sys/socket.h>
#include <stropts.h>
#include <unistd.h>
+ #include "jni.h"
+
/* Support for restartable system calls on Solaris. */
#define RESTARTABLE_RETURN_INT(_cmd) do { \
int _result; \
if (1) { \
*** 89,99 ****
int NET_Select(int s, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, struct timeval *timeout) {
RESTARTABLE_RETURN_INT(select(s, readfds, writefds, exceptfds, timeout));
}
! int NET_Timeout(int s, long timeout) {
int result;
struct timeval t;
long prevtime, newtime;
struct pollfd pfd;
pfd.fd = s;
--- 91,101 ----
int NET_Select(int s, fd_set *readfds, fd_set *writefds,
fd_set *exceptfds, struct timeval *timeout) {
RESTARTABLE_RETURN_INT(select(s, readfds, writefds, exceptfds, timeout));
}
! int NET_Timeout(JNIEnv *unused, int s, long timeout) {
int result;
struct timeval t;
long prevtime, newtime;
struct pollfd pfd;
pfd.fd = s;