summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-06 14:08:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-11-06 14:08:56 +0000
commit62bb03bf5a8195a6515c203015b5fce281234ac1 (patch)
treea361c2361940f2e803d84fe8233f8afe041b4a5e
parent84c2dc95de2fd6b41b374b1a2659707377929cff (diff)
* ext/iconv/extconf.rb: use 3rd argument to have_library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ext/iconv/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/iconv/extconf.rb b/ext/iconv/extconf.rb
index c6e5fa1244..6e23396843 100644
--- a/ext/iconv/extconf.rb
+++ b/ext/iconv/extconf.rb
@@ -6,7 +6,7 @@ conf = File.exist?(File.join($srcdir, "config.charset"))
conf = with_config("config-charset", enable_config("config-charset", conf))
if have_func("iconv", "iconv.h") or
- have_library("iconv", "iconv") {|s| s.sub(/(?=\n\/\*top\*\/)/, "#include <iconv.h>")}
+ have_library("iconv", "iconv", "iconv.h")
if checking_for("const of iconv() 2nd argument") do
create_tmpsrc(cpp_include("iconv.h") + "---> iconv(cd,0,0,0,0) <---")
src = xpopen(cpp_command("")) {|f|f.read}