summaryrefslogtreecommitdiffhomepage
path: root/src/file_test.c
diff options
context:
space:
mode:
authorTomoyuki Sahara <[email protected]>2014-04-17 16:29:27 +0900
committerTomoyuki Sahara <[email protected]>2014-04-17 16:29:27 +0900
commit1c4f46f3244bf4b4b3e8acf55348e6104a2ace4f (patch)
tree788c9ed8c88e4242ad9cd0bcf116e8e17f289022 /src/file_test.c
parenta11780f4f1197aa2082804f80630a775dc26153d (diff)
downloadmruby-1c4f46f3244bf4b4b3e8acf55348e6104a2ace4f.tar.gz
mruby-1c4f46f3244bf4b4b3e8acf55348e6104a2ace4f.zip
remove standard header files from io.h.
Diffstat (limited to 'src/file_test.c')
-rw-r--r--src/file_test.c17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/file_test.c b/src/file_test.c
index 37b139c78..d3dfb15ba 100644
--- a/src/file_test.c
+++ b/src/file_test.c
@@ -3,11 +3,10 @@
*/
#include "mruby.h"
-
-#include "mruby/ext/io.h"
#include "mruby/class.h"
#include "mruby/data.h"
#include "mruby/string.h"
+#include "mruby/ext/io.h"
#if MRUBY_RELEASE_NO < 10000
#include "error.h"
@@ -15,16 +14,26 @@
#include "mruby/error.h"
#endif
+#include <sys/types.h>
+#include <sys/stat.h>
+
#if defined(_WIN32) || defined(_WIN64)
#define LSTAT stat
+ #include <winsock.h>
#else
#define LSTAT lstat
#include <sys/file.h>
+ #include <sys/param.h>
+ #include <sys/wait.h>
#include <libgen.h>
#include <pwd.h>
- #include <sys/param.h>
+ #include <unistd.h>
#endif
-#include <limits.h>
+
+#include <fcntl.h>
+
+#include <errno.h>
+#include <stdio.h>
#include <stdlib.h>
#include <string.h>