--- a/src/applog.cpp	2016-12-02 18:23:28.705313984 +0100
+++ b/src/applog.cpp	2016-12-02 18:23:45.455313926 +0100
@@ -45,6 +45,7 @@
 #include <cstdlib>
 #include <stdarg.h>
 #include <errno.h>
+#include <sys/stat.h>
 
 // TODO sc: test if has to move up now that it is into commoncpp
 // NOTE: the order of inclusion is important do not move following include line
