| ... | ... | @@ -1268,7 +1268,7 @@ pub fn sendmsg(fd: i32, msg: *const msghdr_const, flags: u32) usize { |
| 1268 | 1268 | } |
| 1269 | 1269 | |
| 1270 | 1270 | pub fn sendmmsg(fd: i32, msgvec: [*]mmsghdr_const, vlen: u32, flags: u32) usize { |
| 1271 | | if (@typeInfo(usize).Int.bits > @typeInfo(@TypeOf(mmsghdr(undefined).msg_len)).Int.bits) { |
| 1271 | if (@typeInfo(usize).Int.bits > @typeInfo(@typeInfo(mmsghdr).Struct.fields[1].type).Int.bits) { |
| 1272 | 1272 | // workaround kernel brokenness: |
| 1273 | 1273 | // if adding up all iov_len overflows a i32 then split into multiple calls |
| 1274 | 1274 | // see https://www.openwall.com/lists/musl/2014/06/07/5 |