src/aix/native/java/net/aix_close.c

Print this page

        

@@ -59,13 +59,14 @@
 #include <sys/time.h>
 #include <sys/resource.h>
 #include <sys/uio.h>
 #include <unistd.h>
 #include <errno.h>
-
 #include <sys/poll.h>
 
+#include "jni.h"
+
 /*
  * Stack allocated by thread when doing blocking operation
  */
 typedef struct threadEntry {
     pthread_t thr;                      /* this thread */

@@ -389,11 +390,11 @@
 /*
  * Wrapper for poll(s, timeout).
  * Auto restarts with adjusted timeout if interrupted by
  * signal other than our wakeup signal.
  */
-int NET_Timeout(int s, long timeout) {
+int NET_Timeout(JNIEnv *unused, int s, long timeout) {
     long prevtime = 0, newtime;
     struct timeval t;
     fdEntry_t *fdEntry = getFdEntry(s);
 
     /*