1
0
mirror of https://git.freebsd.org/ports.git synced 2026-06-02 11:08:52 +00:00
Files
ports/net/intel-em-kmod/files/patch-em_compat.h
T
Eugene Grosbein 1a66bb1309 net/intel-em-kmod: unbreak for FreeBSD 15+
FreeBSD 15 introduced some incompatible KAPI changes.
Apply some patches to this code dated back 2019.
This fixes build, so PORTREVISION not changed.

The change is run-tested using 15.0-RELEASE and 82574L-based
network adapters. Compile-tested only for recent 16.0-CURRENT.
2026-05-24 16:43:33 +07:00

15 lines
391 B
C

--- em_compat.h.orig 2020-04-08 22:13:17.000000000 +0700
+++ em_compat.h 2026-05-24 15:21:37.852854000 +0700
@@ -43,6 +43,11 @@
#include <net/if_var.h>
#include <net/if_vlan_var.h>
+/* Forward compatibility for 15+ */
+#if __FreeBSD_version >= 1500000
+void if_etherbpfmtap(if_t ifp, struct mbuf *m);
+#endif
+
/* Backward compatibility for pre-11 */
#if __FreeBSD_version < 1100000