diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-15 00:02:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-04-15 00:02:42 +0000 |
commit | c88d0666d4511ec56645b250d37c04204b30c008 (patch) | |
tree | 6f313f87cd2b6c906eeccb9e6de94bb5b3aacd23 /ext/io/console/console.c | |
parent | 0177687124be88f9fc0981d737bbdb7c57cb971f (diff) |
io/console: fallback RARRAY_CONST_PTR
* ext/io/console/console.c (RARRAY_CONST_PTR): fallback definition
for older ruby.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/io/console/console.c')
-rw-r--r-- | ext/io/console/console.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/io/console/console.c b/ext/io/console/console.c index 17fee11672..7c5a963767 100644 --- a/ext/io/console/console.c +++ b/ext/io/console/console.c @@ -14,6 +14,9 @@ #ifdef HAVE_SYS_IOCTL_H #include <sys/ioctl.h> #endif +#ifndef RARRAY_CONST_PTR +# define RARRAY_CONST_PTR(ary) RARRAY_PTR(ary) +#endif #if defined HAVE_TERMIOS_H # include <termios.h> |