mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
d0454a211e
commit
2992642245
2 changed files with 2 additions and 2 deletions
|
@ -256,7 +256,7 @@ inspect_peercred(int level, int optname, VALUE data, VALUE ret)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(LOCAL_PEERCRED) /* FreeBSD */
|
#if defined(LOCAL_PEERCRED) /* FreeBSD, MacOS X */
|
||||||
static int
|
static int
|
||||||
inspect_local_peercred(int level, int optname, VALUE data, VALUE ret)
|
inspect_local_peercred(int level, int optname, VALUE data, VALUE ret)
|
||||||
{
|
{
|
||||||
|
|
|
@ -313,7 +313,7 @@ class TestUNIXSocket < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_getcred_xucred
|
def test_getcred_xucred
|
||||||
return if /freebsd/ !~ RUBY_PLATFORM
|
return if /freebsd|darwin/ !~ RUBY_PLATFORM
|
||||||
Dir.mktmpdir {|d|
|
Dir.mktmpdir {|d|
|
||||||
sockpath = "#{d}/sock"
|
sockpath = "#{d}/sock"
|
||||||
serv = Socket.unix_server_socket(sockpath)
|
serv = Socket.unix_server_socket(sockpath)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue