1
0
Fork 0
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:
akr 2009-02-08 15:49:35 +00:00
parent d0454a211e
commit 2992642245
2 changed files with 2 additions and 2 deletions

View file

@ -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)
{

View file

@ -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)