--- a/src/utils/log.c
+++ b/src/utils/log.c
@@ -1,5 +1,7 @@
#include <sys/file.h>
#include <sys/stat.h>
+#include <sys/types.h>
+#include <fcntl.h>
#include "utils.h"
static void log_bl_smooth(bl_smooth_t *smooth, const char *prefix);