summaryrefslogtreecommitdiff
path: root/native/jni/java-nio/javanio.c
diff options
context:
space:
mode:
Diffstat (limited to 'native/jni/java-nio/javanio.c')
-rw-r--r--native/jni/java-nio/javanio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/native/jni/java-nio/javanio.c b/native/jni/java-nio/javanio.c
index 09806f8ba..a7018b347 100644
--- a/native/jni/java-nio/javanio.c
+++ b/native/jni/java-nio/javanio.c
@@ -45,7 +45,9 @@ exception statement from your version. */
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
+#ifdef HAVE_SYS_SELECT_H
#include <sys/select.h>
+#endif
#include <sys/uio.h>
CPNIO_EXPORT ssize_t