diff --git a/src/modules/files/efuns.c b/src/modules/files/efuns.c
index da0ec71a4c0a641200f08236ac03c7acd994b365..b1fdc9eb0081fc2c4731f793596025c6d546712a 100644
--- a/src/modules/files/efuns.c
+++ b/src/modules/files/efuns.c
@@ -22,7 +22,7 @@
 #include "file_machine.h"
 #include "file.h"
 
-RCSID("$Id: efuns.c,v 1.52 1998/06/28 16:15:26 grubba Exp $");
+RCSID("$Id: efuns.c,v 1.53 1998/07/02 17:21:03 grubba Exp $");
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
@@ -34,6 +34,10 @@ RCSID("$Id: efuns.c,v 1.52 1998/06/28 16:15:26 grubba Exp $");
 #include <signal.h>
 #include <errno.h>
 
+#ifdef HAVE_LIMITS_H
+#include <limits.h>
+#endif /* HAVE_LIMITS_H */
+
 #if HAVE_DIRENT_H
 # include <dirent.h>
 # define NAMLEN(dirent) strlen((dirent)->d_name)