$OpenBSD: patch-jdk_src_solaris_native_sun_nio_ch_FileDispatcher_c,v 1.1 2008/03/19 18:05:46 kurt Exp $
--- jdk/src/solaris/native/sun/nio/ch/FileDispatcher.c.orig	Tue Dec  4 04:05:47 2007
+++ jdk/src/solaris/native/sun/nio/ch/FileDispatcher.c	Thu Feb 14 18:00:31 2008
@@ -32,8 +32,12 @@
 #include <sys/socket.h>
 #include <fcntl.h>
 #include <sys/uio.h>
+#include <unistd.h>
 #include "nio_util.h"
 
+#if defined(_ALLBSD_SOURCE)
+#include "largefile_bsd.h"
+#endif
 
 static int preCloseFD = -1;     /* File descriptor to which we dup other fd's
                                    before closing them for real */
