void-packages/srcpkgs/pijul/patches/fix-musl.patch
maxice8 947a26ee6d pijul: update to 0.11.0.
thanks to @jnbr for musl fix
2018-11-19 23:44:11 -02:00

11 lines
487 B
Diff

--- line/src/unix.rs.orig 2018-11-19 19:17:02.606568203 +0100
+++ line/src/unix.rs 2018-11-19 19:17:13.762473164 +0100
@@ -6,7 +6,7 @@
fn size() -> (usize, usize) {
unsafe {
let mut size: libc::winsize = std::mem::zeroed();
- if libc::ioctl(1, libc::TIOCGWINSZ as libc::c_ulong, &mut size) == 0 {
+ if libc::ioctl(1, libc::TIOCGWINSZ, &mut size) == 0 {
(size.ws_col as usize, size.ws_row as usize)
} else {
(0, 0)