Project

General

Profile

Bug #11198 ยป 0001-ext-socket-ancdata.c-use-RB_GC_GUARD-instead-of-vola.patch

normalperson (Eric Wong), 05/30/2015 01:28 AM

View differences:

ext/socket/ancdata.c
struct msghdr mh;
struct iovec iov;
#if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
volatile VALUE controls_str = 0;
VALUE controls_str = 0;
VALUE *controls_ptr = NULL;
int family;
#endif
......
rb_readwrite_sys_fail(RB_IO_WAIT_WRITABLE, "sendmsg(2) would block");
rb_sys_fail("sendmsg(2)");
}
#if defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL)
RB_GC_GUARD(controls_str);
#endif
return SSIZET2NUM(ss);
}
-
    (1-1/1)