]> git.pld-linux.org Git - packages/DirectFB.git/blob - DirectFB-broken-i2c-workaround.patch
7b68261e03c12aad933da36a682e9be35309da8e
[packages/DirectFB.git] / DirectFB-broken-i2c-workaround.patch
1 --- DirectFB-0.9.20/gfxdrivers/matrox/matrox_maven.c.orig       2003-07-08 14:44:19.000000000 +0000
2 +++ DirectFB-0.9.20/gfxdrivers/matrox/matrox_maven.c    2003-11-11 18:29:42.000000000 +0000
3 @@ -29,6 +29,13 @@
4  #include <sys/stat.h>
5  #include <fcntl.h>
6  #include <sys/ioctl.h>
7 +/* i2c-dev.h is broken in i2c 2.8.[01] - must include <linux/version.h> first :/
8 + * but <linux/version.h> is included in <linux/i2c.h>, which is needed too
9 + * ...and i2c.h is broken even (MUCH!) more, because it uses internal kernel types
10 + * inside not #ifdef __KERNEL__-ed part!!! argh!!! */
11 +#define __KERNEL__
12 +#include <linux/i2c.h>
13 +#undef __KERNEL__
14  #include <linux/i2c-dev.h>
15  
16  #include <misc/memcpy.h>
This page took 0.055919 seconds and 3 git commands to generate.