aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authoradamw <adamw@FreeBSD.org>2014-07-06 00:11:38 +0800
committeradamw <adamw@FreeBSD.org>2014-07-06 00:11:38 +0800
commit4a83ed0238187015830ddd7b06f25153136dcd99 (patch)
tree12a7f08efd4a415beaae66bc6d9430192382ac6a /net-mgmt
parenta1d6462232e61637a2352b0261ab06fcb023de2c (diff)
downloadfreebsd-ports-gnome-4a83ed0238187015830ddd7b06f25153136dcd99.tar.gz
freebsd-ports-gnome-4a83ed0238187015830ddd7b06f25153136dcd99.tar.zst
freebsd-ports-gnome-4a83ed0238187015830ddd7b06f25153136dcd99.zip
Fix build for FreeBSD < 9 where libstatgrab 0.90 codepath is used.
PR: 190718 Submitted by: Kevin Bowling [patch] Approved by: maintainer
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/collectd5/files/patch-src__users.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/net-mgmt/collectd5/files/patch-src__users.c b/net-mgmt/collectd5/files/patch-src__users.c
new file mode 100644
index 000000000000..c69d9d31a8bf
--- /dev/null
+++ b/net-mgmt/collectd5/files/patch-src__users.c
@@ -0,0 +1,18 @@
+--- ./src/users.c.orig 2014-06-02 22:12:33.650261000 -0700
++++ ./src/users.c 2014-06-11 00:10:39.000000000 -0700
+@@ -101,12 +101,13 @@
+
+ #elif HAVE_LIBSTATGRAB
+ sg_user_stats *us;
++ size_t num_entries;
+
+- us = sg_get_user_stats ();
++ us = sg_get_user_stats (&num_entries);
+ if (us == NULL)
+ return (-1);
+
+- users_submit ((gauge_t) us->num_entries);
++ users_submit ((gauge_t) num_entries);
+ /* #endif HAVE_LIBSTATGRAB */
+
+ #else