git: 3bcdf66c83f7 - main - net/intel-iavf-kmod: fix build on main

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Thu, 06 Jul 2023 09:35:05 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=3bcdf66c83f77df95cf9ab32a48b5ba30f0083da

commit 3bcdf66c83f77df95cf9ab32a48b5ba30f0083da
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2023-07-06 09:32:50 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2023-07-06 09:34:49 +0000

    net/intel-iavf-kmod: fix build on main
---
 net/intel-iavf-kmod/files/patch-if__iavf__iflib.c | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/net/intel-iavf-kmod/files/patch-if__iavf__iflib.c b/net/intel-iavf-kmod/files/patch-if__iavf__iflib.c
new file mode 100644
index 000000000000..2fcb40507f22
--- /dev/null
+++ b/net/intel-iavf-kmod/files/patch-if__iavf__iflib.c
@@ -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);