From: Jan Rękorajski Date: Tue, 9 May 2017 22:56:50 +0000 (+0200) Subject: - fix building with kernel 4.11 X-Git-Tag: auto/th/rtl8812au-4.3.2_11100.20140411-0.20140901.14 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=refs%2Ftags%2Fauto%2Fth%2Frtl8812au-4.3.2_11100.20140411-0.20140901.14;p=packages%2Frtl8812au.git - fix building with kernel 4.11 - rel 14 --- 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}