ruby-changes:10584
From: akr <ko1@a...>
Date: Mon, 9 Feb 2009 00:49:41 +0900 (JST)
Subject: [ruby-changes:10584] Ruby:r22140 (trunk): LOCAL_PEERCRED is also available on MacOS X.
akr 2009-02-09 00:49:35 +0900 (Mon, 09 Feb 2009) New Revision: 22140 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22140 Log: LOCAL_PEERCRED is also available on MacOS X. Modified files: trunk/ext/socket/option.c trunk/test/socket/test_unix.rb Index: ext/socket/option.c =================================================================== --- ext/socket/option.c (revision 22139) +++ ext/socket/option.c (revision 22140) @@ -256,7 +256,7 @@ } #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) { Index: test/socket/test_unix.rb =================================================================== --- test/socket/test_unix.rb (revision 22139) +++ test/socket/test_unix.rb (revision 22140) @@ -313,7 +313,7 @@ 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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/