File r8168-kernel_version.patch of Package r8168

---
 src/r8168.h   |    4 ++++
 src/r8168_n.c |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

--- src/r8168.h
+++ src/r8168.h	2020-02-10 11:32:37.788832833 +0000
@@ -116,6 +116,10 @@ do { \
 } while (0)
 #endif //LINUX_VERSION_CODE < KERNEL_VERSION(2,6,15)
 
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0))
+#include <linux/sched/signal.h>
+#endif
+
 #if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
 #if defined(skb_vlan_tag_present) && !defined(vlan_tx_tag_present)
 #define vlan_tx_tag_present skb_vlan_tag_present
--- src/r8168_n.c
+++ src/r8168_n.c	2020-02-10 11:32:37.788832833 +0000
@@ -28535,7 +28535,7 @@ process_pkt:
 
                         if (rtl8168_rx_vlan_skb(tp, desc, skb) < 0)
                                 rtl8168_rx_skb(tp, skb);
-#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,0)
                         dev->last_rx = jiffies;
 #endif //LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
                         RTLDEV->stats.rx_bytes += pkt_size;