File: 05-4.0.0-build.patch

package info (click to toggle)
fglrx-driver 1:15.9-4~deb8u1~bpo70+1
  • links: PTS, VCS
  • area: non-free
  • in suites: wheezy-backports
  • size: 505,568 kB
  • sloc: ansic: 15,231; xml: 4,141; sh: 2,401; makefile: 425
file content (33 lines) | stat: -rw-r--r-- 1,462 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Patch to fix FTBFS with Linux 4.0.0.
# Thanks to Michael Rasmussen <mir@datanom.net>.
# Closes: #785150

diff -Naur fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/firegl_public.c fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/firegl_public.c
--- fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-09-27 10:44:41.292458241 +0200
+++ fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-09-27 10:43:51.189345210 +0200
@@ -285,6 +285,11 @@
 
 MODULE_INFO(supported, "external");
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 20, 0)
+#define read_cr4()       __read_cr4()
+#define write_cr4(cr4)   __write_cr4(cr4)
+#endif
+
 /* globals constants */
 const char*         KCL_SYSINFO_OsVersionString = UTS_RELEASE;
 const unsigned int  KCL_SYSINFO_PageSize        = PAGE_SIZE;
diff -Naur fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/kcl_str.c fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/kcl_str.c
--- fglrx-driver-15.9.orig/common/lib/modules/fglrx/build_mod/kcl_str.c	2015-09-09 00:57:14.000000000 +0200
+++ fglrx-driver-15.9/common/lib/modules/fglrx/build_mod/kcl_str.c	2015-09-27 10:43:51.189345210 +0200
@@ -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