File kernel6.4.10.patch of Package r8152
diff -rNu r8152-2.18.1/r8152.c r8152-2.18.1n/r8152.c
--- r8152-2.18.1/r8152.c 2024-05-20 09:25:27.000000000 +0200
+++ r8152-2.18.1n/r8152.c 2024-06-06 19:24:29.259361834 +0200
@@ -31,9 +31,12 @@
#include <linux/acpi.h>
#include "compatibility.h"
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10)
+// Linux 6.4.10 added net/gso.h
+#if defined __has_include
+#if __has_include (<net/gso.h>)
#include <net/gso.h>
-#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(6,4,10) */
+#endif
+#endif
/* Version Information */
#define DRIVER_SUFFIX