catalyst: re-add patch for linux>4.0 (strnicmp -> strncasecmp).
This commit is contained in:
parent
f089824fdb
commit
6b9a0d2f48
15
srcpkgs/catalyst/files/linux-4.0.patch
Normal file
15
srcpkgs/catalyst/files/linux-4.0.patch
Normal 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
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user