From 10d01763ae701933119fae69f0ab2bf46f20d87b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20R=C4=99korajski?= Date: Wed, 10 May 2017 00:56:50 +0200 Subject: [PATCH] - fix building with kernel 4.11 - rel 14 --- linux-4.11.patch | 12 ++++++++++++ rtl8812au.spec | 4 +++- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 linux-4.11.patch mode change 100755 => 100644 rtl8812au.spec diff --git a/linux-4.11.patch b/linux-4.11.patch new file mode 100644 index 0000000..4f77368 --- /dev/null +++ b/linux-4.11.patch @@ -0,0 +1,12 @@ +--- rtl8812au_linux-master/include/osdep_service_linux.h~ 2014-07-21 15:06:45.000000000 +0200 ++++ rtl8812au_linux-master/include/osdep_service_linux.h 2017-05-10 00:55:04.866491028 +0200 +@@ -46,6 +46,9 @@ + #endif + #include + #include ++#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)) ++ #include ++#endif + #include + #include + #include diff --git a/rtl8812au.spec b/rtl8812au.spec old mode 100755 new mode 100644 index 4950d7b..420946e --- a/rtl8812au.spec +++ b/rtl8812au.spec @@ -4,7 +4,7 @@ # nothing to be placed to debuginfo package %define _enable_debug_packages 0 -%define rel 13 +%define rel 14 %define snap 20140901 %define pname rtl8812au Summary: Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter @@ -33,6 +33,7 @@ Patch10: linux-4.3.patch Patch11: linux-4.6.patch Patch12: linux-4.7.patch Patch13: linux-4.8.patch +Patch14: linux-4.11.patch BuildRequires: rpmbuild(macros) >= 1.701 %{expand:%buildrequires_kernel kernel%%{_alt_kernel}-module-build >= 3:2.6.20.2} BuildRoot: %{tmpdir}/%{pname}-%{version}-root-%(id -u -n) @@ -88,6 +89,7 @@ Driver for AC1200 (802.11ac) Wireless Dual-Band USB Adapter\ %patch11 -p1 %patch12 -p1 %patch13 -p1 +%patch14 -p1 %build %{expand:%build_kernel_packages} -- 2.44.0