aboutsummaryrefslogtreecommitdiff
path: root/sysutils/xfce4-systemload-plugin
diff options
context:
space:
mode:
authorGuido Falsi <madpilot@FreeBSD.org>2022-12-24 12:20:53 +0000
committerGuido Falsi <madpilot@FreeBSD.org>2022-12-24 12:23:25 +0000
commit616a80e8ed0af226ce2f00c2a6c92f281407a4df (patch)
treea7407b530c24964888369e0b7d4de56dd5987217 /sysutils/xfce4-systemload-plugin
parentc376234da6ce935978044b8ed1387f60365157b0 (diff)
downloadports-616a80e8ed0af226ce2f00c2a6c92f281407a4df.tar.gz
ports-616a80e8ed0af226ce2f00c2a6c92f281407a4df.zip
sysutils/xfce4-systemload-plugin: Fix build on i386
Bug is known upstream: https://gitlab.xfce.org/panel-plugins/xfce4-systemload-plugin/-/issues/25 Adding a home made patch to address the issue. Will update patch with official one if needed, once upstream publishes its patch. Reported by: pkg-fallout
Diffstat (limited to 'sysutils/xfce4-systemload-plugin')
-rw-r--r--sysutils/xfce4-systemload-plugin/files/patch-panel-plugin_network.cc29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin_network.cc b/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin_network.cc
new file mode 100644
index 000000000000..6e36bc2b8595
--- /dev/null
+++ b/sysutils/xfce4-systemload-plugin/files/patch-panel-plugin_network.cc
@@ -0,0 +1,29 @@
+--- panel-plugin/network.cc.orig 2022-02-16 18:57:05 UTC
++++ panel-plugin/network.cc
+@@ -39,7 +39,7 @@ static gint
+ #include <glibtop/netload.h>
+
+ static gint
+-read_netload_libgtop (gulong *bytes)
++read_netload_libgtop (guint64 *bytes)
+ {
+ glibtop_netlist netlist;
+ char **interfaces = glibtop_get_netlist (&netlist);
+@@ -60,7 +60,7 @@ static gint
+ #else
+
+ static gint
+-read_netload_libgtop (gulong *bytes)
++read_netload_libgtop (guint64 *bytes)
+ {
+ return -1;
+ }
+@@ -70,7 +70,7 @@ static gint
+ static const char *const PROC_NET_NETSTAT = "/proc/net/netstat";
+
+ static gint
+-read_netload_proc (gulong *bytes)
++read_netload_proc (guint64 *bytes)
+ {
+ char buf[4*1024];
+ unsigned long long dummy, in_octets, out_octets;