--- a/src/core/qlockfile_unix.cpp.orig	2015-07-19 00:41:35.000000000 +0200
+++ b/src/core/qlockfile_unix.cpp	2015-07-21 20:01:02.607722077 +0200
@@ -39,6 +39,7 @@
 #include <QDebug>
 #include <QDateTime>
 
+#include <fcntl.h>
 #include <sys/file.h>  // flock
 #include <sys/types.h> // kill
 #include <signal.h>    // kill