File leap156.patch of Package r8152

diff -Naur r8152-2.21.4/r8152.c r8152-2.21.4n/r8152.c
--- r8152-2.21.4/r8152.c	2025-11-25 20:07:47.004249997 +0100
+++ r8152-2.21.4n/r8152.c	2025-11-25 20:10:04.912240065 +0100
@@ -36,9 +36,12 @@
 #define strlcpy strscpy
 #endif
 
-#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
 
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(6,16,0)
 #include <linux/socket.h>
openSUSE Build Service is sponsored by