ruby-changes:10808
From: akr <ko1@a...>
Date: Tue, 17 Feb 2009 23:30:00 +0900 (JST)
Subject: [ruby-changes:10808] Ruby:r22376 (trunk): * ext/socket/ancdata.c (bsock_sendmsg_internal): make the padding
akr 2009-02-17 23:26:34 +0900 (Tue, 17 Feb 2009) New Revision: 22376 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22376 Log: * ext/socket/ancdata.c (bsock_sendmsg_internal): make the padding removing only on NetBSD. Modified files: trunk/ChangeLog trunk/ext/socket/ancdata.c Index: ChangeLog =================================================================== --- ChangeLog (revision 22375) +++ ChangeLog (revision 22376) @@ -1,3 +1,8 @@ +Tue Feb 17 23:25:01 2009 Tanaka Akira <akr@f...> + + * ext/socket/ancdata.c (bsock_sendmsg_internal): make the padding + removing only on NetBSD. + Tue Feb 17 19:39:04 2009 Tanaka Akira <akr@f...> * ext/socket/ancdata.c (bsock_sendmsg_internal): should not remove the Index: ext/socket/ancdata.c =================================================================== --- ext/socket/ancdata.c (revision 22375) +++ ext/socket/ancdata.c (revision 22376) @@ -951,8 +951,10 @@ * Basically, msg_controllen should contains the padding. * So the padding is removed only if a problem really exists. */ +#if defined(__NetBSD__) if (last_level == SOL_SOCKET && last_type == SCM_RIGHTS) rb_str_set_len(controls_str, RSTRING_LEN(controls_str)-last_pad); +#endif } #else rb_raise(rb_eNotImpError, "control message for sendmsg is unimplemented"); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/