Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Jul 2014 16:11:39 +0000 (UTC)
From:      Adam Weinberger <adamw@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r360770 - head/net-mgmt/collectd5/files
Message-ID:  <201407051611.s65GBd5K027681@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407051611.s65GBd5K027681>