--- src/utils/log.c.orig
+++ src/utils/log.c
@@ -1,5 +1,7 @@
+#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
+#include <fcntl.h>
#include "commons.h"
static FILE *log_file;