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 | bad27cd767cb7c4dda338df7a2f5a2294bf1f810 (patch) | |
tree | 6f313f87cd2b6c906eeccb9e6de94bb5b3aacd23 | |
parent | 6101c3b7127f4eaa1a07f742de56412aa53d53b1 (diff) | |
download | ruby-bad27cd767cb7c4dda338df7a2f5a2294bf1f810.tar.gz |
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
-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> |