summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debug.c1
-rw-r--r--gc.c4
-rw-r--r--internal.h3
-rw-r--r--string.c1
-rw-r--r--win32/win32.c1
5 files changed, 7 insertions, 3 deletions
diff --git a/debug.c b/debug.c
index f811ec6..e4ad163 100644
--- a/debug.c
+++ b/debug.c
@@ -11,6 +11,7 @@
#include "ruby/ruby.h"
#include "ruby/encoding.h"
+#include "ruby/io.h"
#include "ruby/util.h"
#include "vm_debug.h"
#include "eval_intern.h"
diff --git a/gc.c b/gc.c
index b00dda8..d0144f5 100644
--- a/gc.c
+++ b/gc.c
@@ -14,13 +14,13 @@
#define rb_data_object_alloc rb_data_object_alloc
#define rb_data_typed_object_alloc rb_data_typed_object_alloc
-#include "internal.h"
+#include "ruby/io.h"
#include "ruby/st.h"
#include "ruby/re.h"
-#include "ruby/io.h"
#include "ruby/thread.h"
#include "ruby/util.h"
#include "ruby/debug.h"
+#include "internal.h"
#include "eval_intern.h"
#include "vm_core.h"
#include "gc.h"
diff --git a/internal.h b/internal.h
index 119726b..1a96599 100644
--- a/internal.h
+++ b/internal.h
@@ -14,7 +14,6 @@
#include "ruby.h"
#include "ruby/encoding.h"
-#include "ruby/io.h"
#if defined(__cplusplus)
extern "C" {
@@ -1315,7 +1314,9 @@ void ruby_set_inplace_mode(const char *);
ssize_t rb_io_bufread(VALUE io, void *buf, size_t size);
void rb_stdio_set_default_encoding(void);
VALUE rb_io_flush_raw(VALUE, int);
+#ifdef RUBY_IO_H
size_t rb_io_memsize(const rb_io_t *);
+#endif
int rb_stderr_tty_p(void);
/* load.c */
diff --git a/string.c b/string.c
index 75db0d2..390a9c3 100644
--- a/string.c
+++ b/string.c
@@ -24,6 +24,7 @@
#define BEG(no) (regs->beg[(no)])
#define END(no) (regs->end[(no)])
+#include <errno.h>
#include <math.h>
#include <ctype.h>
diff --git a/win32/win32.c b/win32/win32.c
index 5cb842f..025c4a3 100644
--- a/win32/win32.c
+++ b/win32/win32.c
@@ -23,6 +23,7 @@
#include "ruby/ruby.h"
#include "ruby/encoding.h"
+#include "ruby/io.h"
#include "ruby/util.h"
#include <fcntl.h>
#include <process.h>