summary refs log tree commit diff
path: root/pkgs/os-specific/linux/ati-drivers/patches/15.9-sep_printf.patch
blob: 3e4e8d6499a01e6d03fe7348f1b569663235eb9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- a/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-09-14 15:14:36.000000000 -0400
+++ b/common/lib/modules/fglrx/build_mod/firegl_public.c	2015-09-14 16:18:58.000000000 -0400
@@ -649,6 +649,8 @@ static int firegl_major_proc_read(struct
     *eof = 1;
 
     len = snprintf(buf, request, "%d\n", major);
+#elif LINUX_VERSION_CODE >= KERNEL_VERSION(4,3,0)
+    seq_printf(m, "%d\n", major);
 #else
     len = seq_printf(m, "%d\n", major);
 #endif