svn commit: r360770 - head/net-mgmt/collectd5/files
Adam Weinberger
adamw at FreeBSD.org
Sat Jul 5 16:11:39 UTC 2014
Author: adamw
Date: Sat Jul 5 16:11:38 2014
New Revision: 360770
URL: http://svnweb.freebsd.org/changeset/ports/360770
QAT: https://qat.redports.org/buildarchive/r360770/
Log:
Fix build for FreeBSD < 9 where libstatgrab 0.90 codepath is used.
PR: 190718
Submitted by: Kevin Bowling [patch]
Approved by: maintainer
Added:
head/net-mgmt/collectd5/files/patch-src__users.c (contents, props changed)
Added: head/net-mgmt/collectd5/files/patch-src__users.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/net-mgmt/collectd5/files/patch-src__users.c Sat Jul 5 16:11:38 2014 (r360770)
@@ -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
More information about the svn-ports-head
mailing list