summaryrefslogtreecommitdiff
path: root/net/zaptel12/files/patch-wcfxs::wcfxs.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/zaptel12/files/patch-wcfxs::wcfxs.c')
-rw-r--r--net/zaptel12/files/patch-wcfxs::wcfxs.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/zaptel12/files/patch-wcfxs::wcfxs.c b/net/zaptel12/files/patch-wcfxs::wcfxs.c
new file mode 100644
index 000000000000..bab8faf9d09e
--- /dev/null
+++ b/net/zaptel12/files/patch-wcfxs::wcfxs.c
@@ -0,0 +1,20 @@
+
+$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",