summaryrefslogtreecommitdiff
path: root/net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-20 03:40:25 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-20 03:40:25 +0100
commita40d7aa891556e7984504838ea13099a5ca12802 (patch)
tree050df6f154c781a7bdf47e5f1bb113f1c96d56fe /net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch
parent78df2aa7ae35e69cd91f555197f771fcd59f196c (diff)
gentoo auto-resync : 20:08:2023 - 03:40:24
Diffstat (limited to 'net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch')
-rw-r--r--net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch b/net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch
new file mode 100644
index 000000000000..f10b86447971
--- /dev/null
+++ b/net-misc/r8168/files/r8168-8.051.02-6.4.10-fix.patch
@@ -0,0 +1,17 @@
+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>