aboutsummaryrefslogtreecommitdiff
path: root/x11-wm/leftwm/files
diff options
context:
space:
mode:
authorPiotr Kubaj <pkubaj@FreeBSD.org>2021-12-12 18:36:11 +0000
committerPiotr Kubaj <pkubaj@FreeBSD.org>2021-12-12 18:36:11 +0000
commit6bcd9d2f051da55e897d17ad5add3c91268faa4f (patch)
tree467d030f6058db26e56040e9cb2aef4e399bb0d9 /x11-wm/leftwm/files
parentda7c8ee010fd596d96c5a593abffb78687fd72ac (diff)
downloadports-6bcd9d2f051da55e897d17ad5add3c91268faa4f.tar.gz
ports-6bcd9d2f051da55e897d17ad5add3c91268faa4f.zip
x11-wm/leftwm: fix build on powerpc*, probably also arm*
char is unsigned on powerpc*.
Diffstat (limited to 'x11-wm/leftwm/files')
-rw-r--r--x11-wm/leftwm/files/patch-leftwm-core_src_display__servers_xlib__display__server_xwrap_getters.rs11
1 files changed, 11 insertions, 0 deletions
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);
+ }
+ };