From fcaeb59c85aa1b4be0f6a45a7e2e9ef158329807 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Fri, 12 May 2017 21:53:50 +0100 Subject: [PATCH] RTL8812AU: Fix build for API changes in kernel 4.11 --- .../patches/RTL8812AU-kernel-4.11.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 packages/linux-drivers/RTL8812AU/patches/RTL8812AU-kernel-4.11.patch diff --git a/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-kernel-4.11.patch b/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-kernel-4.11.patch new file mode 100644 index 0000000000..ececf680d5 --- /dev/null +++ b/packages/linux-drivers/RTL8812AU/patches/RTL8812AU-kernel-4.11.patch @@ -0,0 +1,27 @@ +From 14eb40c9bcbb68044361334d5f95a4f63ebc8775 Mon Sep 17 00:00:00 2001 +From: MilhouseVH +Date: Mon, 13 Mar 2017 19:47:38 +0000 +Subject: [PATCH] RTL8812AU: Fix build for API changes in kernel 4.11 + +--- + include/osdep_service.h | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/include/osdep_service.h b/include/osdep_service.h +index 82e27c5..d866551 100644 +--- a/include/osdep_service.h ++++ b/include/osdep_service.h +@@ -20,6 +20,10 @@ + #ifndef __OSDEP_SERVICE_H_ + #define __OSDEP_SERVICE_H_ + ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) ++#include ++#endif + + #define _FAIL 0 + #define _SUCCESS 1 +-- +2.7.4 +