1
0
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:
Adam Weinberger 2014-07-05 16:11:38 +00:00
parent 75a4519a45
commit a0e0aa704d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=360770

View 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