1 |
vapier 07/12/30 18:06:13 |
2 |
|
3 |
Modified: svgalib-1.9.25-linux2.6.patch |
4 |
Log: |
5 |
Fix building with linux-2.6.23 #195632. |
6 |
(Portage version: 2.1.4_rc11) |
7 |
|
8 |
Revision Changes Path |
9 |
1.4 media-libs/svgalib/files/svgalib-1.9.25-linux2.6.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.patch?rev=1.4&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.patch?rev=1.4&content-type=text/plain |
13 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.patch?r1=1.3&r2=1.4 |
14 |
|
15 |
Index: svgalib-1.9.25-linux2.6.patch |
16 |
=================================================================== |
17 |
RCS file: /var/cvsroot/gentoo-x86/media-libs/svgalib/files/svgalib-1.9.25-linux2.6.patch,v |
18 |
retrieving revision 1.3 |
19 |
retrieving revision 1.4 |
20 |
diff -u -r1.3 -r1.4 |
21 |
--- svgalib-1.9.25-linux2.6.patch 3 Dec 2006 07:08:57 -0000 1.3 |
22 |
+++ svgalib-1.9.25-linux2.6.patch 30 Dec 2007 18:06:12 -0000 1.4 |
23 |
@@ -60,6 +60,28 @@ |
24 |
# define my_io_remap_page_range(vma, start, ofs, len, prot) \ |
25 |
io_remap_page_range(vma,start,ofs,len,prot) |
26 |
# else |
27 |
+@@ -70,6 +70,7 @@ |
28 |
+ |
29 |
+ /* These are also not present in 2.6 kernels ... */ |
30 |
+ #if (!defined _LINUX_DEVFS_FS_KERNEL_H) || (defined KERNEL_2_6) |
31 |
++#include <linux/fs.h> |
32 |
+ static inline int devfs_register_chrdev (unsigned int major, const char *name, |
33 |
+ struct file_operations *fops) |
34 |
+ { |
35 |
+@@ -77,7 +78,12 @@ |
36 |
+ } |
37 |
+ static inline int devfs_unregister_chrdev (unsigned int major,const char *name) |
38 |
+ { |
39 |
+- return unregister_chrdev (major, name); |
40 |
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0) |
41 |
++ return unregister_chrdev (major, name); |
42 |
++#else |
43 |
++ unregister_chrdev (major, name); |
44 |
++ return 0; |
45 |
++#endif |
46 |
+ } |
47 |
+ #endif |
48 |
+ |
49 |
--- svgalib/kernel/svgalib_helper/main.c |
50 |
+++ svgalib/kernel/svgalib_helper/main.c |
51 |
@@ -1,5 +1,3 @@ |
52 |
|
53 |
|
54 |
|
55 |
-- |
56 |
gentoo-commits@g.o mailing list |