summaryrefslogtreecommitdiff
path: root/net/zaptel12/files/patch-wcfxs::wcfxs.c
blob: bab8faf9d09ed2e995ff32ebbd30f1e6532c7865 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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",