diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 15:49:35 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-08 15:49:35 +0000 |
commit | 299264224525d80a585e695a7bfaaa22e32ef8dc (patch) | |
tree | b6f195a6082cb973c69ae03d99850fee7f0eeabb | |
parent | d0454a211e1bb2803ca424af79eda3676b7a48c7 (diff) | |
download | ruby-299264224525d80a585e695a7bfaaa22e32ef8dc.tar.gz |
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
-rw-r--r-- | ext/socket/option.c | 2 | ||||
-rw-r--r-- | test/socket/test_unix.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/socket/option.c b/ext/socket/option.c index ff60cfb53c..980acda85d 100644 --- a/ext/socket/option.c +++ b/ext/socket/option.c @@ -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) { diff --git a/test/socket/test_unix.rb b/test/socket/test_unix.rb index 6b54594736..fb0c47d348 100644 --- a/test/socket/test_unix.rb +++ b/test/socket/test_unix.rb @@ -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) |