summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/file.c b/file.c
index 8d6d5e0ca0..13cca0fa47 100644
--- a/file.c
+++ b/file.c
@@ -67,6 +67,10 @@ char *strrchr _((const char*,const char));
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef HAVE_SYS_MKDEV_H
+#include <sys/mkdev.h>
+#endif
+
#ifndef HAVE_LSTAT
#define lstat(path,st) stat(path,st)
#endif