2014-01-22 10:57:43 +01:00
|
|
|
diff --git a/common/lib/modules/fglrx/build_mod/firegl_public.c b/common/lib/modules/fglrx/build_mod/firegl_public.c
|
|
|
|
index d3ad3ce..9362b58 100755
|
|
|
|
--- a/common/lib/modules/fglrx/build_mod/firegl_public.c
|
|
|
|
+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c
|
|
|
|
@@ -34,6 +34,11 @@
|
|
|
|
#include <linux/autoconf.h>
|
|
|
|
#endif
|
2013-08-22 12:00:23 +02:00
|
|
|
|
2014-01-22 10:57:43 +01:00
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
|
|
|
|
+#include <linux/uidgid.h>
|
2013-08-22 12:00:23 +02:00
|
|
|
+#endif
|
|
|
|
+
|
|
|
|
+
|
2014-01-22 10:57:43 +01:00
|
|
|
#if !defined(CONFIG_X86)
|
|
|
|
#if !defined(CONFIG_X86_PC)
|
|
|
|
#if !defined(CONFIG_X86_XEN)
|
|
|
|
@@ -1543,9 +1548,17 @@ KCL_TYPE_Pid ATI_API_CALL KCL_GetTgid(void)
|
|
|
|
KCL_TYPE_Uid ATI_API_CALL KCL_GetEffectiveUid(void)
|
|
|
|
{
|
|
|
|
#ifdef current_euid
|
|
|
|
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
|
|
|
|
+ return __kuid_val(current_euid());
|
|
|
|
+# else
|
|
|
|
return current_euid();
|
|
|
|
+# endif
|
|
|
|
#else
|
|
|
|
+# if LINUX_VERSION_CODE >= KERNEL_VERSION(3,5,0)
|
|
|
|
+ return __kuid_val(current->euid);
|
|
|
|
+# else
|
|
|
|
return current->euid;
|
|
|
|
+# endif
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
diff -urN a/common/lib/modules/fglrx/build_mod/kcl_acpi.c common/lib/modules/fglrx/build_mod/kcl_acpi.c
|
|
|
|
--- a/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-12-27 13:32:34.734832283 +0100
|
|
|
|
+++ b/common/lib/modules/fglrx/build_mod/kcl_acpi.c 2013-12-27 13:33:31.849831765 +0100
|
|
|
|
@@ -1002,7 +1002,11 @@
|
|
|
|
#endif
|
|
|
|
{
|
|
|
|
return KCL_ACPI_ERROR;
|
|
|
|
- }
|
2013-08-22 12:00:23 +02:00
|
|
|
+ }
|
2014-01-22 10:57:43 +01:00
|
|
|
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,1)
|
|
|
|
+ ((acpi_tbl_table_handler)handler)(hdr);
|
2013-08-22 12:00:23 +02:00
|
|
|
+#else
|
2014-01-22 10:57:43 +01:00
|
|
|
((acpi_table_handler)handler)(hdr);
|
2013-08-22 12:00:23 +02:00
|
|
|
+#endif
|
2014-01-22 10:57:43 +01:00
|
|
|
return KCL_ACPI_OK;
|
|
|
|
}
|