aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-15 00:02:42 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-04-15 00:02:42 +0000
commitc88d0666d4511ec56645b250d37c04204b30c008 (patch)
tree6f313f87cd2b6c906eeccb9e6de94bb5b3aacd23
parent0177687124be88f9fc0981d737bbdb7c57cb971f (diff)
downloadruby-c88d0666d4511ec56645b250d37c04204b30c008.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.c3
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>