diff options
author | grembo <grembo@FreeBSD.org> | 2015-05-02 05:56:23 +0800 |
---|---|---|
committer | grembo <grembo@FreeBSD.org> | 2015-05-02 05:56:23 +0800 |
commit | 47208a26882ed777ae79347649ce33dc03c9a42e (patch) | |
tree | 9d5ab5c68a8346137565fa332f0965baa9b24710 /sysutils | |
parent | fd7e525846dfd2957200b994fb1abc359811489e (diff) | |
download | freebsd-ports-gnome-47208a26882ed777ae79347649ce33dc03c9a42e.tar.gz freebsd-ports-gnome-47208a26882ed777ae79347649ce33dc03c9a42e.tar.zst freebsd-ports-gnome-47208a26882ed777ae79347649ce33dc03c9a42e.zip |
Fix build on HEAD after SMBus change (r281985/r282256).
Approved by: mentors (implicit)
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/lmmon/files/patch-lmmon.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/sysutils/lmmon/files/patch-lmmon.c b/sysutils/lmmon/files/patch-lmmon.c new file mode 100644 index 000000000000..a7381a0332a6 --- /dev/null +++ b/sysutils/lmmon/files/patch-lmmon.c @@ -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; + |