--- src/common.h.orig	2015-07-15 11:51:26.241748048 +0200
+++ src/common.h	2015-07-15 11:51:33.086404222 +0200
@@ -22,6 +22,7 @@
 #include <pwd.h>
 #include <grp.h>
 #include <libgen.h>
+#include <fcntl.h>
 
 #if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__APPLE__) || defined(__FreeBSD_kernel__)
 #include <sys/param.h>
