mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
802 B

  1. diff -urN -x '*~' DirectFB-0.9.18/gfxdrivers/matrox/matrox_maven.c DirectFB-0.9.18-fix/gfxdrivers/matrox/matrox_maven.c
  2. --- DirectFB-0.9.18/gfxdrivers/matrox/matrox_maven.c 2003-06-02 17:28:24.000000000 +0200
  3. +++ DirectFB-0.9.18-fix/gfxdrivers/matrox/matrox_maven.c 2003-10-02 07:53:46.000000000 +0200
  4. @@ -21,14 +21,26 @@
  5. Boston, MA 02111-1307, USA.
  6. */
  7. +/* TERRIBLE HACK */
  8. +#define __KERNEL__
  9. +
  10. #include <stdio.h>
  11. #include <unistd.h>
  12. #include <string.h>
  13. #include <ctype.h>
  14. #include <sys/types.h>
  15. +#include <asm/types.h>
  16. #include <sys/stat.h>
  17. #include <fcntl.h>
  18. #include <sys/ioctl.h>
  19. +
  20. +// where the fsck does this get defined:
  21. +typedef __s32 s32;
  22. +typedef __u32 u32;
  23. +typedef __u16 u16;
  24. +typedef __u8 u8;
  25. +
  26. +#include <linux/i2c.h>
  27. #include <linux/i2c-dev.h>
  28. #include <misc/util.h>