Page MenuHomeFreeBSD

D35950.diff
No OneTemporary

D35950.diff

diff --git a/sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c b/sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c
new file mode 100644
--- /dev/null
+++ b/sysutils/mbgtools/files/patch-mbgclock_mbgclock__main.c
@@ -0,0 +1,15 @@
+--- mbgclock/mbgclock_main.c.orig 2022-07-26 17:02:15 UTC
++++ mbgclock/mbgclock_main.c
+@@ -585,7 +585,11 @@ static device_method_t mbgclock_methods[] =
+
+
+
++DEFINE_CLASS_0( mbgclock, mbgclock_driver, mbgclock_methods, sizeof( struct mbgclock_softc ) );
++#if __FreeBSD_version >= 1400058
++DRIVER_MODULE( mbgclock, pci, mbgclock_driver, 0, 0 );
++#else
+ static devclass_t mbgclock_devclass;
+
+-DEFINE_CLASS_0( mbgclock, mbgclock_driver, mbgclock_methods, sizeof( struct mbgclock_softc ) );
+ DRIVER_MODULE( mbgclock, pci, mbgclock_driver, mbgclock_devclass, 0, 0 );
++#endif

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 8, 3:21 AM (21 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14526537
Default Alt Text
D35950.diff (829 B)

Event Timeline