Only support the SMB_OLD_BREAD ioctl if one of COMPAT_FREEBSD[456] is

defined.
This commit is contained in:
John Baldwin 2006-09-26 14:38:56 +00:00
parent d39de3122d
commit d93b6afb2b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=162662

View File

@ -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);