summaryrefslogtreecommitdiff
path: root/misc/zaptel/files/patch-wcfxo::wcfxo.c
diff options
context:
space:
mode:
authorMaxim Sobolev <sobomax@FreeBSD.org>2004-10-26 14:06:06 +0000
committerMaxim Sobolev <sobomax@FreeBSD.org>2004-10-26 14:06:06 +0000
commit33f57ea588ed6c094d754fa6d0b579c54d112b6c (patch)
treeb153f1ecf8a92b41e4eec72aa450c56ec0deded9 /misc/zaptel/files/patch-wcfxo::wcfxo.c
parent- Update to 2.2.1 (diff)
Improve compatibility with 4.x, particularly:
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.
Diffstat (limited to 'misc/zaptel/files/patch-wcfxo::wcfxo.c')
-rw-r--r--misc/zaptel/files/patch-wcfxo::wcfxo.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/misc/zaptel/files/patch-wcfxo::wcfxo.c b/misc/zaptel/files/patch-wcfxo::wcfxo.c
new file mode 100644
index 000000000000..1a2810a58b6d
--- /dev/null
+++ b/misc/zaptel/files/patch-wcfxo::wcfxo.c
@@ -0,0 +1,22 @@
+
+$FreeBSD$
+
+--- wcfxo/wcfxo.c
++++ wcfxo/wcfxo.c
+@@ -267,8 +267,14 @@
+
+ /* Character device entry points */
+ static struct cdevsw wcfxo_cdevsw = {
+-#if __FreeBSD_version >= 502103
+- .d_version = D_VERSION,
++#if __FreeBSD_version < 502103
++#ifdef MAJOR_AUTO
++ .d_maj = MAJOR_AUTO,
++#else
++ .d_maj = 197,
++#endif
++#else
++ .d_version = D_VERSION,
+ #endif
+ .d_name = "wcfxo",
+ .d_open = wcfxo_sys_open,