summaryrefslogtreecommitdiff
path: root/lib/mkmf.rb
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-18 06:56:38 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-09-18 06:56:38 +0000
commitde5a85496ac4ae7bd24b5fc7acb8001a5e4d8b7d (patch)
tree0ad108b04b1012522217a02b8e7f7dd940943759 /lib/mkmf.rb
parent4c28c7d1af7ce6c30cc1bc9c0e5685c0ef17dc13 (diff)
* array.c (rb_ary_equal): element size might change during
comparison. [ruby-dev:24254] * array.c (rb_ary_diff): ditto. [ruby-dev:24274] * array.c (rb_ary_select): ditto. [ruby-dev:24278] * array.c (rb_ary_delete): ditto. [ruby-dev:24283] * array.c (rb_ary_rindex): ditto. [ruby-dev:24275] * array.c (rb_ary_initialize): element size might change during initializing block. [ruby-dev:24284] * dir.c (dir_s_chdir): avoid memory leak and unnecessary chdir to the original directory when exception has caused in changing direcotry or within block. thanks to Johan Holmberg <holmberg@iar.se> [ruby-core:03446] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6922 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/mkmf.rb')
-rw-r--r--lib/mkmf.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 316bfe3505..494838e63b 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -474,7 +474,7 @@ def checking_for(m)
r
end
-def have_library(lib, func = nil, &b)
+def have_library(lib, func = nil, header=nil, &b)
func = "main" if !func or func.empty?
lib = with_config(lib+'lib', lib)
checking_for "#{func}() in #{LIBARG%lib}" do
@@ -482,7 +482,7 @@ def have_library(lib, func = nil, &b)
true
else
libs = append_library($libs, lib)
- if try_func(func, libs, &b)
+ if try_func(func, libs, header, &b)
$libs = libs
true
else