summaryrefslogtreecommitdiff
path: root/ext/iconv
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
commitaa6ece9fc67894c8bceb633425a72ab1866b7df1 (patch)
treec95afc6ae24d6be68e05243ffb998a83b6706d30 /ext/iconv
parentcca46ddd719e937475b750cf30a4baf35bd7f1df (diff)
* ext/iconv/extconf.rb: use 3rd argument to have_library.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@9508 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/iconv')
-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 359771e8a9..a9d0cfb5e6 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}