зеркало из https://github.com/github/ruby.git
LOCAL_PEERCRED is also available on MacOS X.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22140 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
d0454a211e
Коммит
2992642245
|
@ -256,7 +256,7 @@ inspect_peercred(int level, int optname, VALUE data, VALUE ret)
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(LOCAL_PEERCRED) /* FreeBSD */
|
||||
#if defined(LOCAL_PEERCRED) /* FreeBSD, MacOS X */
|
||||
static int
|
||||
inspect_local_peercred(int level, int optname, VALUE data, VALUE ret)
|
||||
{
|
||||
|
|
|
@ -313,7 +313,7 @@ class TestUNIXSocket < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_getcred_xucred
|
||||
return if /freebsd/ !~ RUBY_PLATFORM
|
||||
return if /freebsd|darwin/ !~ RUBY_PLATFORM
|
||||
Dir.mktmpdir {|d|
|
||||
sockpath = "#{d}/sock"
|
||||
serv = Socket.unix_server_socket(sockpath)
|
||||
|
|
Загрузка…
Ссылка в новой задаче