mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
Fix build for FreeBSD < 9 where libstatgrab 0.90 codepath is used.
PR: 190718 Submitted by: Kevin Bowling [patch] Approved by: maintainer
This commit is contained in:
parent
75a4519a45
commit
a0e0aa704d
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360770
18
net-mgmt/collectd5/files/patch-src__users.c
Normal file
18
net-mgmt/collectd5/files/patch-src__users.c
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user