diff options
author | jhb <jhb@FreeBSD.org> | 2006-09-26 14:38:56 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2006-09-26 14:38:56 +0000 |
commit | 4509194f6580621bf5ef0591efc1fd3d4b8633d5 (patch) | |
tree | d28c82775e0c02e1eb7c27f2a42d421974b3be18 | |
parent | 61dff6e6303ee67cbc937bf6c70312d998bf534c (diff) | |
download | FreeBSD-src-4509194f6580621bf5ef0591efc1fd3d4b8633d5.zip FreeBSD-src-4509194f6580621bf5ef0591efc1fd3d4b8633d5.tar.gz |
Only support the SMB_OLD_BREAD ioctl if one of COMPAT_FREEBSD[456] is
defined.
-rw-r--r-- | sys/dev/smbus/smb.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/smbus/smb.c b/sys/dev/smbus/smb.c index e5944bd..6fce9b2 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); |