diff --git a/src/dir.h b/src/dir.h
index 7dc975779ae1a5146d58e8efdc3f81d1a6934af1..653eb2eab7f58f4db0cbae9a438efa1048fce362 100644
--- a/src/dir.h
+++ b/src/dir.h
@@ -107,16 +107,13 @@ extern int (*dir_process)(void);
 
 /* Scanning a live directory */
 extern int dir_scan_smfs;
+extern int exclude_kernfs;
 void dir_scan_init(const char *path);
 
 /* Importing a file */
 extern int dir_import_active;
 int dir_import_init(const char *fn);
 
-#if HAVE_LINUX_MAGIC_H && HAVE_SYS_STATFS_H && HAVE_STATFS
-extern int exclude_kernfs;
-#endif
-
 
 /* The currently configured output functions. */
 extern struct dir_output dir_output;