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.
This commit is contained in:
Josef Karthauser 2002-02-15 22:54:10 +00:00
parent 5874617263
commit c67fd26e98
6 changed files with 18 additions and 0 deletions

View file

@ -147,6 +147,9 @@ Static struct cdevsw ugen_cdevsw = {
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
/* bmaj */ -1
#endif
};
#endif

View file

@ -154,6 +154,9 @@ Static struct cdevsw uhid_cdevsw = {
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
/* bmaj */ -1
#endif
};
#endif

View file

@ -146,6 +146,9 @@ Static struct cdevsw ulpt_cdevsw = {
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
/* bmaj */ -1
#endif
};
#endif

View file

@ -172,6 +172,9 @@ static struct cdevsw umodem_cdevsw = {
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ D_TTY | D_KQFILTER,
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
/* bmaj */ -1,
#endif
/* kqfilter */ ttykqfilter,
};
#endif

View file

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

View file

@ -145,6 +145,9 @@ struct cdevsw usb_cdevsw = {
/* dump */ nodump,
/* psize */ nopsize,
/* flags */ 0,
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
/* bmaj */ -1
#endif
};
#endif