summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/util.c b/util.c
index a5049a72f4..d886d41c78 100644
--- a/util.c
+++ b/util.c
@@ -15,6 +15,10 @@
#define RUBY_NO_INLINE
#include "ruby.h"
+#ifdef NT
+#include "missing/file.h"
+#endif
+
int
rb_type(obj)
VALUE obj;
@@ -101,6 +105,10 @@ int *retlen;
# define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)
#endif
+#ifdef NT
+#include "missing/file.h"
+#endif
+
static char *
check_dir(dir)
char *dir;
@@ -133,7 +141,6 @@ ruby_mktemp()
}
#if defined(MSDOS) || defined(__CYGWIN32__) || defined(NT)
-#include <fcntl.h>
/*
* Copyright (c) 1993, Intergraph Corporation
*