From: Jakub Bogusz Date: Tue, 11 Nov 2003 18:40:21 +0000 (+0000) Subject: - heavily broken i2c headers on builders :/ X-Git-Tag: auto/ac/DirectFB-0_9_20-1~1 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=7505a4d783d40df6d28d59ccb01489ca368be23d;p=packages%2FDirectFB.git - heavily broken i2c headers on builders :/ Changed files: DirectFB-broken-i2c-workaround.patch -> 1.1 --- diff --git a/DirectFB-broken-i2c-workaround.patch b/DirectFB-broken-i2c-workaround.patch new file mode 100644 index 0000000..7b68261 --- /dev/null +++ b/DirectFB-broken-i2c-workaround.patch @@ -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 + #include + #include ++/* i2c-dev.h is broken in i2c 2.8.[01] - must include first :/ ++ * but is included in , 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 ++#undef __KERNEL__ + #include + + #include