catalyst: re-add patch for linux>4.0 (strnicmp -> strncasecmp).

This commit is contained in:
Juan RP 2015-09-16 12:21:28 +02:00
parent f089824fdb
commit 6b9a0d2f48
2 changed files with 17 additions and 1 deletions

View File

@ -0,0 +1,15 @@
--- 14.12/common/lib/modules/fglrx/build_mod/kcl_str.c 2014-11-28 21:02:10.000000000 +0100
+++ 14.12_2/common/lib/modules/fglrx/build_mod/kcl_str.c 2015-03-08 13:25:11.568396701 +0100
@@ -169,7 +169,11 @@
const char* s2,
KCL_TYPE_SizeSigned count)
{
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,0,0)
return strnicmp(s1, s2, count);
+#else
+ return strncasecmp(s1, s2, count);
+#endif
}
/** \brief Locate character in string

View File

@ -4,7 +4,7 @@ _release="15.9"
pkgname=catalyst
version=15.201.1151
revision=1
revision=2
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="Proprietary AMD license"
homepage="http://www.amd.com"
@ -35,6 +35,7 @@ do_build() {
/bin/sh ./*.run --extract fglrx-${version}
cd fglrx-${version}
patch -Np1 -i ${FILESDIR}/linux-4.0.patch
patch -Np1 -i ${FILESDIR}/kolasa_4.1_remove-IRQF_DISABLED.patch
patch -Np1 -i ${FILESDIR}/fglrx_gpl_symbol.patch
}