summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 08:09:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-02-08 08:09:49 +0000
commitec0a0da84a6603f362057c1855e5e4f4b2f26697 (patch)
treea3dea9d11b8f266c10002b60bda05fb48e1176f2
parentc4d09fb29928a07a617200030bd37dc332ea5d42 (diff)
internal.h: moved ruby_null_device declaration
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62306 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--internal.h1
-rw-r--r--mjit.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/internal.h b/internal.h
index 92b3ba8745..eab2d2b269 100644
--- a/internal.h
+++ b/internal.h
@@ -1242,6 +1242,7 @@ void rb_call_end_proc(VALUE data);
void rb_mark_end_proc(void);
/* file.c */
+extern const char ruby_null_device[];
VALUE rb_home_dir_of(VALUE user, VALUE result);
VALUE rb_default_home_dir(VALUE result);
VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
diff --git a/mjit.c b/mjit.c
index ba4da6b416..7ba8ae7a3c 100644
--- a/mjit.c
+++ b/mjit.c
@@ -206,8 +206,6 @@ static char *tmp_dir;
static VALUE valid_class_serials;
/* Ruby level interface module. */
VALUE rb_mMJIT;
-/* Portable /dev/null, defined in file.c */
-extern const char ruby_null_device[];
#ifdef _WIN32
/* Linker option to enable libruby in the build directory. */