mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/socket/ancdata.c (bsock_sendmsg_internal): make the padding
removing only on NetBSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
536adb5d7c
commit
28cf7a6d6f
2 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue Feb 17 23:25:01 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/ancdata.c (bsock_sendmsg_internal): make the padding
|
||||
removing only on NetBSD.
|
||||
|
||||
Tue Feb 17 19:39:04 2009 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/ancdata.c (bsock_sendmsg_internal): should not remove the
|
||||
|
|
|
@ -951,8 +951,10 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
|
|||
* 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");
|
||||
|
|
Loading…
Add table
Reference in a new issue