On Fri, 2012-04-27 at 01:45 +0200, Stefan Tauner wrote:
... so I started looking around and found the fix : I added #include <linux/types.h> before #include <linux/spi/spidev.h>, line 27 of flashrom-0.9.5.2/linux_spi.c
It now compiles and works.
afaics this should not be necessary at all. the header in http://packages.slackverse.org/?v=3&p=316 includes linux/types.h itself at the top (as expected). can you explain why yours does not?
Old kernel headers. We already fixed that incompatibility in r1517, which is shortly after 0.9.5.2
Regards, Michael Karcher