git: 6bcd9d2f051d - main - x11-wm/leftwm: fix build on powerpc*, probably also arm*
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 12 Dec 2021 18:41:30 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=6bcd9d2f051da55e897d17ad5add3c91268faa4f commit 6bcd9d2f051da55e897d17ad5add3c91268faa4f Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2021-12-12 18:36:11 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2021-12-12 18:36:11 +0000 x11-wm/leftwm: fix build on powerpc*, probably also arm* char is unsigned on powerpc*. --- ...rc_display__servers_xlib__display__server_xwrap_getters.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/x11-wm/leftwm/files/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs b/x11-wm/leftwm/files/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs new file mode 100644 index 000000000000..9b88f79804b0 --- /dev/null +++ b/x11-wm/leftwm/files/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs @@ -0,0 +1,11 @@ +--- leftwm-core/src/display_servers/xlib_display_server/xwrap/getters.rs.orig 2021-12-12 17:42:31 UTC ++++ leftwm-core/src/display_servers/xlib_display_server/xwrap/getters.rs +@@ -575,7 +575,7 @@ impl XWrap { + if status == 0 { + return Err(XlibError::FailedStatus); + } +- if let Ok(s) = CString::from_raw(text_prop.value.cast::<i8>()).into_string() { ++ if let Ok(s) = CString::from_raw(text_prop.value.cast::<nix::libc::c_char>()).into_string() { + return Ok(s); + } + };