From owner-svn-ports-all@FreeBSD.ORG Fri May 1 21:56:24 2015 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F38A9E38; Fri, 1 May 2015 21:56:23 +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 E1D9A11F1; Fri, 1 May 2015 21:56:23 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t41LuNFp004898; Fri, 1 May 2015 21:56:23 GMT (envelope-from grembo@FreeBSD.org) Received: (from grembo@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t41LuNEB004897; Fri, 1 May 2015 21:56:23 GMT (envelope-from grembo@FreeBSD.org) Message-Id: <201505012156.t41LuNEB004897@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: grembo set sender to grembo@FreeBSD.org using -f From: Michael Gmelin Date: Fri, 1 May 2015 21:56:23 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385152 - head/sysutils/lmmon/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-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2015 21:56:24 -0000 Author: grembo Date: Fri May 1 21:56:23 2015 New Revision: 385152 URL: https://svnweb.freebsd.org/changeset/ports/385152 Log: Fix build on HEAD after SMBus change (r281985/r282256). Approved by: mentors (implicit) Added: head/sysutils/lmmon/files/ head/sysutils/lmmon/files/patch-lmmon.c (contents, props changed) Added: head/sysutils/lmmon/files/patch-lmmon.c ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sysutils/lmmon/files/patch-lmmon.c Fri May 1 21:56:23 2015 (r385152) @@ -0,0 +1,23 @@ +--- lmmon.c.orig 2015-05-01 23:15:27.977446000 +0200 ++++ lmmon.c 2015-05-01 23:17:30.502831000 +0200 +@@ -43,6 +43,7 @@ + #include "config.h" + #endif + #ifdef HAVE_SMB ++ #include + #include + #endif + +@@ -73,7 +74,12 @@ + + /* Initialize the struct */ + bzero(&cmd, sizeof(cmd)); ++#if (__FreeBSD_version >= 1100071) ++ cmd.rbuf = &byte; ++ cmd.rcount = 1; ++#else + cmd.data.byte_ptr = &byte; ++#endif + cmd.slave = 0x5a; + cmd.cmd = command; +