aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/smbus
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2006-09-26 14:38:56 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2006-09-26 14:38:56 +0000
commitd93b6afb2b8e9266ea48dbecdd5dd086fb3f0c7d (patch)
treed28c82775e0c02e1eb7c27f2a42d421974b3be18 /sys/dev/smbus
parentd39de3122dae07fb07859ba9e596379328bebbb6 (diff)
Notes
Diffstat (limited to 'sys/dev/smbus')
-rw-r--r--sys/dev/smbus/smb.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c
index e5944bd9502d..6fce9b2f5ebd 100644
--- a/sys/dev/smbus/smb.c
+++ b/sys/dev/smbus/smb.c
@@ -26,6 +26,10 @@
* $FreeBSD$
*/
+#ifdef HAVE_KERNEL_OPTION_HEADERS
+#include "opt_compat.h"
+#endif
+
#include <sys/param.h>
#include <sys/kernel.h>
#include <sys/systm.h>
@@ -270,7 +274,9 @@ smbioctl(struct cdev *dev, u_long cmd, caddr_t data, int flags, struct thread *t
}
break;
+#if defined(COMPAT_FREEBSD4) || defined(COMPAT_FREEBSD5) || defined(COMPAT_FREEBSD6)
case SMB_OLD_BREAD:
+#endif
case SMB_BREAD:
if (s->count && s->data.byte_ptr) {
count = min(s->count, SMB_MAXBLOCKSIZE);