mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
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:
parent
5874617263
commit
c67fd26e98
6 changed files with 18 additions and 0 deletions
|
|
@ -147,6 +147,9 @@ Static struct cdevsw ugen_cdevsw = {
|
|||
/* dump */ nodump,
|
||||
/* psize */ nopsize,
|
||||
/* flags */ 0,
|
||||
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
|
||||
/* bmaj */ -1
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -154,6 +154,9 @@ Static struct cdevsw uhid_cdevsw = {
|
|||
/* dump */ nodump,
|
||||
/* psize */ nopsize,
|
||||
/* flags */ 0,
|
||||
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
|
||||
/* bmaj */ -1
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -146,6 +146,9 @@ Static struct cdevsw ulpt_cdevsw = {
|
|||
/* dump */ nodump,
|
||||
/* psize */ nopsize,
|
||||
/* flags */ 0,
|
||||
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
|
||||
/* bmaj */ -1
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -145,6 +145,9 @@ struct cdevsw usb_cdevsw = {
|
|||
/* dump */ nodump,
|
||||
/* psize */ nopsize,
|
||||
/* flags */ 0,
|
||||
#if !defined(__FreeBSD__) || (__FreeBSD__ < 5)
|
||||
/* bmaj */ -1
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue