svn commit: r385152 - head/sysutils/lmmon/files
Michael Gmelin
grembo at FreeBSD.org
Fri May 1 21:56:24 UTC 2015
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 <osreldate.h>
+ #include <machine/smb.h>
+ #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;
+
More information about the svn-ports-all
mailing list