]> git.pld-linux.org Git - packages/DirectFB.git/commitdiff
- heavily broken i2c headers on builders :/
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 11 Nov 2003 18:40:21 +0000 (18:40 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    DirectFB-broken-i2c-workaround.patch -> 1.1

DirectFB-broken-i2c-workaround.patch [new file with mode: 0644]

diff --git a/DirectFB-broken-i2c-workaround.patch b/DirectFB-broken-i2c-workaround.patch
new file mode 100644 (file)
index 0000000..7b68261
--- /dev/null
@@ -0,0 +1,16 @@
+--- DirectFB-0.9.20/gfxdrivers/matrox/matrox_maven.c.orig      2003-07-08 14:44:19.000000000 +0000
++++ DirectFB-0.9.20/gfxdrivers/matrox/matrox_maven.c   2003-11-11 18:29:42.000000000 +0000
+@@ -29,6 +29,13 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <sys/ioctl.h>
++/* i2c-dev.h is broken in i2c 2.8.[01] - must include <linux/version.h> first :/
++ * but <linux/version.h> is included in <linux/i2c.h>, which is needed too
++ * ...and i2c.h is broken even (MUCH!) more, because it uses internal kernel types
++ * inside not #ifdef __KERNEL__-ed part!!! argh!!! */
++#define __KERNEL__
++#include <linux/i2c.h>
++#undef __KERNEL__
+ #include <linux/i2c-dev.h>
+ #include <misc/memcpy.h>
This page took 0.093656 seconds and 4 git commands to generate.