diff options
author | joe <joe@FreeBSD.org> | 2002-02-15 22:54:10 +0000 |
---|---|---|
committer | joe <joe@FreeBSD.org> | 2002-02-15 22:54:10 +0000 |
commit | 19331922cd0fb5b41d689b594c3d4be59594b572 (patch) | |
tree | f3911ffd1c740ea97235f2e9bebfffc7b73cf2e0 /sys/dev/usb/ums.c | |
parent | 3a2318bd78bb44e69310d4397eed63658ac8a65f (diff) | |
download | FreeBSD-src-19331922cd0fb5b41d689b594c3d4be59594b572.zip FreeBSD-src-19331922cd0fb5b41d689b594c3d4be59594b572.tar.gz |
Re-add bmaj to the cdevsw's, but don't compile it in on -current.
This makes the code more portable between -current, -stable and the
other BSDs.
Diffstat (limited to 'sys/dev/usb/ums.c')
-rw-r--r-- | sys/dev/usb/ums.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/dev/usb/ums.c b/sys/dev/usb/ums.c index 7aeee20..f42e7b5 100644 --- a/sys/dev/usb/ums.c +++ b/sys/dev/usb/ums.c @@ -158,6 +158,9 @@ Static struct cdevsw ums_cdevsw = { /* dump */ nodump, /* psize */ nopsize, /* flags */ 0, +#if !defined(__FreeBSD__) || (__FreeBSD__ < 5) + /* bmaj */ -1 +#endif }; USB_DECLARE_DRIVER(ums); |