diff --git a/ccc.c b/ccc.c
index 5a6445b..8794cd2 100644
--- a/ccc.c
+++ b/ccc.c
@@ -1,6 +1,7 @@
 #include <ctype.h>
 #include <dirent.h>
 #include <errno.h>
+#include <fcntl.h>
 #include <ftw.h>
 #include <stdio.h>
 #include <stdlib.h>