--- a/src/utils/log.c
+++ b/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;