--- source/lockfile.cpp.orig
+++ source/lockfile.cpp
@@ -5,6 +5,7 @@
#include <sys/types.h>
#include <sys/file.h>
+#include <fcntl.h>
#include <unistd.h>
#include "lockfile.h"
#include "FileDescriptorOwner.h"