--- tools/omfile.c.orig	2015-05-23 03:55:37.960658341 +0200
+++ tools/omfile.c	2015-05-23 03:55:53.471816125 +0200
@@ -47,6 +47,7 @@
 #include <ctype.h>
 #include <libgen.h>
 #include <unistd.h>
+#include <fcntl.h>
 #include <sys/file.h>
 #ifdef OS_SOLARIS
 #	include <fcntl.h>
