git: 758a6b27865d - main - net/realrek-re-kmod198: fix build on FreeBSD 15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 Dec 2024 00:05:40 UTC
The branch main has been updated by meta:
URL: https://cgit.FreeBSD.org/ports/commit/?id=758a6b27865d0459e4d8e394f9f57c0f10cc4f45
commit 758a6b27865d0459e4d8e394f9f57c0f10cc4f45
Author: Koichiro Iwao <meta@FreeBSD.org>
AuthorDate: 2024-12-01 23:22:16 +0000
Commit: Koichiro Iwao <meta@FreeBSD.org>
CommitDate: 2024-12-01 23:23:11 +0000
net/realrek-re-kmod198: fix build on FreeBSD 15
Apply 4ca9ea9d4060a4a494456a0e56306bd508fe20e8 to this port.
---
net/realtek-re-kmod198/Makefile | 6 ++++++
net/realtek-re-kmod198/files/extra-patch-if__re.c | 10 ++++++++++
2 files changed, 16 insertions(+)
diff --git a/net/realtek-re-kmod198/Makefile b/net/realtek-re-kmod198/Makefile
index 32fcf4d7a800..ba08d32e0de8 100644
--- a/net/realtek-re-kmod198/Makefile
+++ b/net/realtek-re-kmod198/Makefile
@@ -18,6 +18,12 @@ GH_ACCOUNT= alexdupre
GH_PROJECT= rtl_bsd_drv
GH_TAGNAME= d3a7a3d
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && (${OSVERSION} >= 1500000)
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-if__re.c
+.endif
+
PLIST_FILES= ${KMODDIR}/if_re.ko
.include <bsd.port.mk>
diff --git a/net/realtek-re-kmod198/files/extra-patch-if__re.c b/net/realtek-re-kmod198/files/extra-patch-if__re.c
new file mode 100644
index 000000000000..0ca560fcafdb
--- /dev/null
+++ b/net/realtek-re-kmod198/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 <net/if.h>
+ #include <net/if_var.h>
++#include <net/if_private.h>
+ #include <net/if_arp.h>
+ #include <net/ethernet.h>
+ #include <net/if_dl.h>