summaryrefslogtreecommitdiff
path: root/sysutils/xmbmon/files/patch-getMB-smb_ioctl.c
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2005-12-16 16:23:40 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2005-12-16 16:23:40 +0000
commit54fae43aabe1354eb7e1a319125fa61188f5aada (patch)
treeef573e062052e9325b58f6b498f61d5dc2b786d7 /sysutils/xmbmon/files/patch-getMB-smb_ioctl.c
parentRemove WWW. Site has disappeared. (diff)
- Enable smb(4) support (on amd64 and i386 for now).
- Fix PCI ID for AMD-8111's SMBus 1.0 supported by amdpm(4).
Notes
Notes: svn path=/head/; revision=151333
Diffstat (limited to 'sysutils/xmbmon/files/patch-getMB-smb_ioctl.c')
-rw-r--r--sysutils/xmbmon/files/patch-getMB-smb_ioctl.c24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/xmbmon/files/patch-getMB-smb_ioctl.c b/sysutils/xmbmon/files/patch-getMB-smb_ioctl.c
new file mode 100644
index 000000000000..7fe81da58542
--- /dev/null
+++ b/sysutils/xmbmon/files/patch-getMB-smb_ioctl.c
@@ -0,0 +1,24 @@
+$FreeBSD$
+
+--- getMB-smb_ioctl.c.orig Sat Jul 5 18:15:24 2003
++++ getMB-smb_ioctl.c Fri Dec 16 17:56:54 2005
+@@ -5,6 +5,7 @@
+ #ifdef HAVE_SMBUS
+ /* assume SMBus ioctl support, only for FreeBSD */
+
++#include <sys/param.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <fcntl.h>
+@@ -13,7 +14,11 @@
+ #include <sys/types.h>
+ #include <sys/ioctl.h>
+
++#if __FreeBSD_version >= 500000
++#include <dev/smbus/smb.h>
++#else
+ #include <machine/smb.h>
++#endif
+
+ #include "methods.h"
+