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