From ee3d2bd1973741d377d0e64048a46789bd34d344 Mon Sep 17 00:00:00 2001 From: sbwml Date: Sun, 10 Dec 2023 20:08:16 +0800 Subject: [PATCH] r8101: fix build with kernel 6.6 --- patches/011-fix-linux-6.6.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 patches/011-fix-linux-6.6.patch diff --git a/patches/011-fix-linux-6.6.patch b/patches/011-fix-linux-6.6.patch new file mode 100644 index 0000000..5b3e2e7 --- /dev/null +++ b/patches/011-fix-linux-6.6.patch @@ -0,0 +1,13 @@ +--- a/r8101_n.c ++++ b/r8101_n.c +@@ -69,6 +69,10 @@ This driver is modified from r8169.c in Linux kernel 2.6.18 + #include + #endif + ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,6,0) ++# include ++#endif ++ + #include + #include +