diff --git a/net/realtek-re-kmod/Makefile b/net/realtek-re-kmod/Makefile index 0a6cffedba27..d97e36da6115 100644 --- a/net/realtek-re-kmod/Makefile +++ b/net/realtek-re-kmod/Makefile @@ -1,24 +1,30 @@ PORTNAME= re PORTVERSION= 1100.00 DISTVERSIONPREFIX= v PORTREVISION= 1 CATEGORIES= net PKGNAMEPREFIX= realtek- PKGNAMESUFFIX= -kmod MAINTAINER= ale@FreeBSD.org COMMENT= Kernel driver for Realtek PCIe Ethernet Controllers WWW= https://github.com/alexdupre/rtl_bsd_drv LICENSE= BSD4CLAUSE USES= kmod tar:tgz uidfix USE_GITHUB= yes GH_ACCOUNT= alexdupre GH_PROJECT= rtl_bsd_drv GH_TAGNAME= ea4ed1e +.include + +.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1500000) +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-if__re.c +.endif + PLIST_FILES= ${KMODDIR}/if_re.ko .include diff --git a/net/realtek-re-kmod/files/extra-patch-if__re.c b/net/realtek-re-kmod/files/extra-patch-if__re.c new file mode 100644 index 000000000000..0ca560fcafdb --- /dev/null +++ b/net/realtek-re-kmod/files/extra-patch-if__re.c @@ -0,0 +1,10 @@ +--- if_re.c.orig 2024-06-04 09:39:04 UTC ++++ if_re.c +@@ -67,6 +67,7 @@ __FBSDID("$FreeBSD: src/sys/dev/re/if_re.c,v " RE_VERS + + #include + #include ++#include + #include + #include + #include