src/solaris/native/java/net/solaris_close.c
Print this page
@@ -26,10 +26,12 @@
#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,11 +91,11 @@
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 NET_Timeout(JNIEnv *unused, int s, long timeout) {
int result;
struct timeval t;
long prevtime, newtime;
struct pollfd pfd;
pfd.fd = s;