--- openafs-1.6.5.orig/src/rx/rx_lwp.c	2013-07-18 00:10:42.000000000 +0200
+++ openafs-1.6.5/src/rx/rx_lwp.c	2013-09-14 15:12:45.580963823 +0200
@@ -28,6 +28,7 @@
 #ifdef AFS_NT40_ENV
 # include <winsock2.h>
 #else
+# include <fcntl.h>
 # include <unistd.h>		/* select() prototype */
 # include <sys/time.h>		/* struct timeval, select() prototype */
 # ifndef FD_SET