opendreambox.conf: remove PREFERRED_VERSION_udev for obsolete kernel
[opendreambox.git] / meta-opendreambox / recipes-multimedia / cdfs / files / compile-fix-linux-3.2.patch
1 diff -Naur cdfs-2.6.27-org/root.c cdfs-2.6.27/root.c
2 --- cdfs-2.6.27-org/root.c      2012-01-29 01:46:36.000000000 +0100
3 +++ cdfs-2.6.27/root.c  2012-01-29 02:09:30.793696801 +0100
4 @@ -518,7 +518,11 @@
5    
6    i->i_uid        = this_cd->uid;
7    i->i_gid        = this_cd->gid;
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)
9 +  set_nlink(i, 1);
10 +#else
11    i->i_nlink      = 1;
12 +#endif
13    i->i_op         = &cdfs_inode_operations;
14    i->i_fop        = NULL;
15    i->i_data.a_ops = NULL;