Index: lookup.c
--- lookup.c.orig
+++ lookup.c
@@ -98,6 +98,7 @@ static char Rcs_Id[] =
  *
  */
 
+#include <fcntl.h>
 #include "config.h"
 #include "ispell.h"
 #include "proto.h"
