From c88d0666d4511ec56645b250d37c04204b30c008 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 15 Apr 2016 00:02:42 +0000 Subject: 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 --- ext/io/console/console.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/io') 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 #endif +#ifndef RARRAY_CONST_PTR +# define RARRAY_CONST_PTR(ary) RARRAY_PTR(ary) +#endif #if defined HAVE_TERMIOS_H # include -- cgit v1.2.3