33f57ea588
o Don't use devinfo(8) in startup script, since it doesn't exist on 4.x. Use pciinfo(8) instead. o In zaptel driver don't require a specific major on the 5.x system that support auto major numbering; o Assign specific majors to wcfxs and wcfxo drivers on systems that don't support auto major numbering; o Ensure that nodes are created properly on non-devfs systems.
21 lines
350 B
C
21 lines
350 B
C
|
|
$FreeBSD$
|
|
|
|
--- wcfxs/wcfxs.c
|
|
+++ wcfxs/wcfxs.c
|
|
@@ -308,7 +308,13 @@
|
|
|
|
/* Character device entry points */
|
|
static struct cdevsw wcfxs_cdevsw = {
|
|
-#if __FreeBSD_version >= 502103
|
|
+#if __FreeBSD_version < 502103
|
|
+#ifdef MAJOR_AUTO
|
|
+ .d_maj = MAJOR_AUTO,
|
|
+#else
|
|
+ .d_maj = 198,
|
|
+#endif
|
|
+#else
|
|
.d_version = D_VERSION,
|
|
#endif
|
|
.d_name = "wcfxs",
|