ruby-changes:10583
From: akr <ko1@a...>
Date: Mon, 9 Feb 2009 00:45:25 +0900 (JST)
Subject: [ruby-changes:10583] Ruby:r22139 (trunk): * ext/socket/option.c (sockopt_inspect): add ifdef guard for
akr 2009-02-09 00:45:15 +0900 (Mon, 09 Feb 2009) New Revision: 22139 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22139 Log: * ext/socket/option.c (sockopt_inspect): add ifdef guard for LOCAL_PEERCRED. Modified files: trunk/ChangeLog trunk/ext/socket/option.c Index: ChangeLog =================================================================== --- ChangeLog (revision 22138) +++ ChangeLog (revision 22139) @@ -1,3 +1,8 @@ +Mon Feb 9 00:44:45 2009 Tanaka Akira <akr@f...> + + * ext/socket/option.c (sockopt_inspect): add ifdef guard for + LOCAL_PEERCRED. + Mon Feb 9 00:37:06 2009 Tanaka Akira <akr@f...> * ext/socket/option.c (inspect_local_peercred): cr_uid is a effective Index: ext/socket/option.c =================================================================== --- ext/socket/option.c (revision 22138) +++ ext/socket/option.c (revision 22139) @@ -326,10 +326,12 @@ } if (family == AF_UNIX && level == 0) { +# if defined(LOCAL_PEERCRED) if (optname == LOCAL_PEERCRED) { if (inspect_local_peercred(level, optname, data, ret) == -1) goto dump; goto finish; } +# endif } switch (level) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/