mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
same as r44598
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@44600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d1bbd80d93
commit
622db848ce
2 changed files with 2 additions and 2 deletions
|
@ -181,7 +181,7 @@ module DL
|
|||
# In general uses of dlerror(3) should call it before use it.
|
||||
require 'socket'
|
||||
Socket.gethostbyname("localhost")
|
||||
DL.dlopen("/usr/lib/libc.so").sym('strcpy')
|
||||
DL.dlopen("/lib/libc.so.7").sym('strcpy')
|
||||
end if /freebsd/=~ RUBY_PLATFORM
|
||||
end
|
||||
end
|
||||
|
|
|
@ -183,7 +183,7 @@ module Fiddle
|
|||
# In general uses of dlerror(3) should call it before use it.
|
||||
require 'socket'
|
||||
Socket.gethostbyname("localhost")
|
||||
Fiddle.dlopen("/usr/lib/libc.so").sym('strcpy')
|
||||
Fiddle.dlopen("/lib/libc.so.7").sym('strcpy')
|
||||
end if /freebsd/=~ RUBY_PLATFORM
|
||||
end
|
||||
end if defined?(Fiddle)
|
||||
|
|
Loading…
Reference in a new issue