core/catalyst/ubuntu_buildfix_kernel_4.0.patch

14 lines
377 B
Diff
Raw Normal View History

--- 15.7/common/lib/modules/fglrx/build_mod/kcl_str.c
+++ 15.7b/common/lib/modules/fglrx/build_mod/kcl_str.c
@@ -42,6 +42,10 @@
#include "kcl_type.h"
#include "kcl_str.h"
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 20, 0)
+#define strnicmp strncasecmp
+#endif
+
/** \brief Fill memory with a constant byte
* \param s Pointer to memory
* \param c Initializing value