diff options
Diffstat (limited to 'net/zaptel12/files/patch-wcfxo::wcfxo.c')
-rw-r--r-- | net/zaptel12/files/patch-wcfxo::wcfxo.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/net/zaptel12/files/patch-wcfxo::wcfxo.c b/net/zaptel12/files/patch-wcfxo::wcfxo.c new file mode 100644 index 000000000000..1a2810a58b6d --- /dev/null +++ b/net/zaptel12/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, |