diff --git a/src/files.c b/src/files.c
index 3a33b418560be8160396b9582f0a117a03a86902..96d8ab5ce5c6a720cefe4c61250146f4dc139d76 100644
--- a/src/files.c
+++ b/src/files.c
@@ -32,7 +32,6 @@
 #include <fcntl.h>
 #include <errno.h>
 #include <ctype.h>
-#include <dirent.h>
 #include <pwd.h>
 #include <assert.h>
 #include "proto.h"