mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
net/intel-iavf-kmod: fix build on main
This commit is contained in:
parent
9ae5aa698d
commit
3bcdf66c83
1 changed files with 15 additions and 0 deletions
15
net/intel-iavf-kmod/files/patch-if__iavf__iflib.c
Normal file
15
net/intel-iavf-kmod/files/patch-if__iavf__iflib.c
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
--- if_iavf_iflib.c.orig 2023-07-06 09:26:54 UTC
|
||||||
|
+++ if_iavf_iflib.c
|
||||||
|
@@ -130,8 +130,12 @@ static driver_t iavf_driver = {
|
||||||
|
"iavf", iavf_methods, sizeof(struct iavf_sc),
|
||||||
|
};
|
||||||
|
|
||||||
|
+#if __FreeBSD_version >= 1400058
|
||||||
|
+DRIVER_MODULE(iavf, pci, iavf_driver, 0, 0);
|
||||||
|
+#else
|
||||||
|
devclass_t iavf_devclass;
|
||||||
|
DRIVER_MODULE(iavf, pci, iavf_driver, iavf_devclass, 0, 0);
|
||||||
|
+#endif
|
||||||
|
MODULE_VERSION(iavf, 1);
|
||||||
|
|
||||||
|
MODULE_DEPEND(iavf, pci, 1, 1, 1);
|
Loading…
Add table
Reference in a new issue