Skip to content

Commit

Permalink
net/intel-igb-kmod: fix build on main
Browse files Browse the repository at this point in the history
  • Loading branch information
pkubaj committed Jun 12, 2023
1 parent b172a2c commit d2a4b02
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions net/intel-igb-kmod/files/patch-if__igb.c
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d2a4b02

Please sign in to comment.