diff options
Diffstat (limited to 'x11/i3bar-river/files/patch-wayrs')
-rw-r--r-- | x11/i3bar-river/files/patch-wayrs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/x11/i3bar-river/files/patch-wayrs b/x11/i3bar-river/files/patch-wayrs new file mode 100644 index 000000000000..c28b92a402a2 --- /dev/null +++ b/x11/i3bar-river/files/patch-wayrs @@ -0,0 +1,13 @@ +https://github.com/MaxVerevkin/wayrs/issues/19 + +--- cargo-crates/wayrs-core-1.0.1/src/transport/unix.rs.orig 2006-07-24 01:21:28 UTC ++++ cargo-crates/wayrs-core-1.0.1/src/transport/unix.rs +@@ -42,7 +42,7 @@ impl Transport for UnixStream { + let pmhdr = unsafe { libc::CMSG_FIRSTHDR(&mhdr).as_mut().unwrap() }; + pmhdr.cmsg_level = libc::SOL_SOCKET; + pmhdr.cmsg_type = libc::SCM_RIGHTS; +- pmhdr.cmsg_len = unsafe { libc::CMSG_LEN(fds_size as libc::c_uint) } as usize; ++ pmhdr.cmsg_len = unsafe { libc::CMSG_LEN(fds_size as libc::c_uint) }; + let dst_ptr = unsafe { libc::CMSG_DATA(pmhdr) }; + let src_ptr = fds.as_ptr().cast(); + unsafe { std::ptr::copy_nonoverlapping(src_ptr, dst_ptr, fds_size) }; |