git: d2a4b026c768 - main - net/intel-igb-kmod: fix build on main
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 12 Jun 2023 15:18:33 UTC
The branch main has been updated by pkubaj: URL: https://cgit.FreeBSD.org/ports/commit/?id=d2a4b026c768ab94b12a3e55dd083f71859bf4e3 commit d2a4b026c768ab94b12a3e55dd083f71859bf4e3 Author: Piotr Kubaj <pkubaj@FreeBSD.org> AuthorDate: 2023-06-12 15:18:18 +0000 Commit: Piotr Kubaj <pkubaj@FreeBSD.org> CommitDate: 2023-06-12 15:18:18 +0000 net/intel-igb-kmod: fix build on main --- net/intel-igb-kmod/files/patch-if__igb.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/net/intel-igb-kmod/files/patch-if__igb.c b/net/intel-igb-kmod/files/patch-if__igb.c new file mode 100644 index 000000000000..a834463024aa --- /dev/null +++ b/net/intel-igb-kmod/files/patch-if__igb.c @@ -0,0 +1,15 @@ +--- if_igb.c.orig 2023-06-12 15:16:16 UTC ++++ if_igb.c +@@ -252,8 +252,12 @@ static driver_t igb_driver = { + "igb", igb_methods, sizeof(struct adapter), + }; + ++#if __FreeBSD_version >= 1400058 ++DRIVER_MODULE(igb, pci, igb_driver, 0, 0); ++#else + static devclass_t igb_devclass; + DRIVER_MODULE(igb, pci, igb_driver, igb_devclass, 0, 0); ++#endif + MODULE_DEPEND(igb, pci, 1, 1, 1); + MODULE_DEPEND(igb, ether, 1, 1, 1); + #ifdef DEV_NETMAP