diff --git a/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch b/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch new file mode 100644 index 00000000000..7373023db37 --- /dev/null +++ b/srcpkgs/broadcom-wl-dkms/patches/linux-4.3.patch @@ -0,0 +1,15 @@ +diff -ru a/src/shared/linux_osl.c b/src/shared/linux_osl.c +--- src/shared/linux_osl.c 2015-09-18 15:47:30.000000000 -0700 ++++ src/shared/linux_osl.c 2015-11-14 15:38:10.484563014 -0800 +@@ -932,7 +932,11 @@ + uint cycles; + + #if defined(__i386__) ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 3, 0) ++ cycles = rdtsc(); ++#else + rdtscl(cycles); ++#endif + #else + cycles = 0; + #endif diff --git a/srcpkgs/broadcom-wl-dkms/template b/srcpkgs/broadcom-wl-dkms/template index 60102b63c0e..c614df14261 100644 --- a/srcpkgs/broadcom-wl-dkms/template +++ b/srcpkgs/broadcom-wl-dkms/template @@ -2,7 +2,7 @@ pkgname=broadcom-wl-dkms version=6.30.223.271 -revision=1 +revision=2 maintainer="Juan RP " license="Proprietary Broadcom license" homepage="http://broadcom.com"