From 2a62ca666c97d5e1dd1e841b70eeee0ac7798ca3 Mon Sep 17 00:00:00 2001
From: nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
Date: Sat, 16 Feb 2013 03:58:04 +0000
Subject: [PATCH] io/console: fix configuration failure

* ext/io/console/extconf.rb: fix configuration failure by missing
  cpp_include.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
---
 ext/io/console/extconf.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb
index 79f5838c5e..2f363152e3 100644
--- a/ext/io/console/extconf.rb
+++ b/ext/io/console/extconf.rb
@@ -13,7 +13,7 @@ else
   ok = false
 end
 ok &&= enable_config("io-console-force-compatible-with-1.8") ||
-  macro_defined?("HAVE_RUBY_IO_H", "ruby.h")
+  macro_defined?("HAVE_RUBY_IO_H", cpp_include("ruby.h"))
 if ok
   have_header("sys/ioctl.h")
   have_func("rb_check_hash_type", "ruby.h")