gentoo-ebuilds/net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch
Karlson2k (Evgeny Grin) 13f43b7375
net-misc/r8168: fixed build with kernel 6.4.10+
Bug: https://bugs.gentoo.org/912242

Signed-off-by: Karlson2k (Evgeny Grin) <k2k@narod.ru>
Closes: https://github.com/gentoo/gentoo/pull/32323
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
2023-08-20 00:31:56 +02:00

17 lines
436 B
Diff

Fixed build with kernels 6.4.10+
Gentoo Bug: https://bugs.gentoo.org/912242
See also: https://github.com/mtorromeo/r8168/issues/54
---
--- a/src/r8168_n.c 2023-08-13 03:33:06.977422132 +0400
+++ b/src/r8168_n.c 2023-08-13 03:38:39.767005101 +0400
@@ -81,6 +81,10 @@
#include <linux/mdio.h>
#endif
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10)
+#include <net/gso.h>
+#endif
+
#include <asm/io.h>
#include <asm/irq.h>