--- open-iscsi-2.0-871.orig/usr/idbm.c	2009-07-11 05:55:58.000000000 +0200
+++ open-iscsi-2.0-871/usr/idbm.c	2014-01-03 12:44:20.000000000 +0100
@@ -29,6 +29,7 @@
 #include <limits.h>
 #include <sys/stat.h>
 #include <sys/file.h>
+#include <fcntl.h>
 
 #include "idbm.h"
 #include "idbm_fields.h"