From owner-svn-ports-head@FreeBSD.ORG Sat Jul 5 16:11:39 2014 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8270BB3F; Sat, 5 Jul 2014 16:11:39 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6F7EB2701; Sat, 5 Jul 2014 16:11:39 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s65GBdDD027682; Sat, 5 Jul 2014 16:11:39 GMT (envelope-from adamw@svn.freebsd.org) Received: (from adamw@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s65GBd5K027681; Sat, 5 Jul 2014 16:11:39 GMT (envelope-from adamw@svn.freebsd.org) Message-Id: <201407051611.s65GBd5K027681@svn.freebsd.org> From: Adam Weinberger Date: Sat, 5 Jul 2014 16:11:39 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r360770 - head/net-mgmt/collectd5/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Jul 2014 16:11:39 -0000 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