diff --git a/src/modules/files/efuns.c b/src/modules/files/efuns.c
index 2f752643d7ad0f4214754ffd872f86bccf2d4e84..f7e29317d2a112993a835d889d881a2bc2c5fd01 100644
--- a/src/modules/files/efuns.c
+++ b/src/modules/files/efuns.c
@@ -101,6 +101,9 @@ void f_file_stat(INT32 args)
 #ifdef HAVE_SYS_STATVFS_H
 #include <sys/statvfs.h>
 #endif /* HAVE_SYS_STATVFS_H */
+#ifdef HAVE_SYS_STATFS_H
+#include <sys/statfs.h>
+#endif
 #ifdef HAVE_SYS_VFS_H
 #include <sys/vfs.h>
 #endif /* HAVE_SYS_VFS_H */