<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Apr 27, 2012 at 7:56 AM, Michael Karcher <span dir="ltr"><<a href="mailto:flashrom@mkarcher.dialup.fu-berlin.de" target="_blank">flashrom@mkarcher.dialup.fu-berlin.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Fri, 2012-04-27 at 01:45 +0200, Stefan Tauner wrote:<br>
> > ... so I started looking around and found the fix : I added #include<br>
> > <linux/types.h> before #include <linux/spi/spidev.h>, line 27 of<br>
> > flashrom-0.9.5.2/linux_spi.c<br>
> ><br>
> > It now compiles and works.<br>
><br>
> afaics this should not be necessary at all.<br>
> the header in <a href="http://packages.slackverse.org/?v=3&p=316" target="_blank">http://packages.slackverse.org/?v=3&p=316</a> includes<br>
> linux/types.h itself at the top (as expected). can you explain why<br>
> yours does not?<br>
<br>
</div>Old kernel headers. We already fixed that incompatibility in r1517,<br>
which is shortly after 0.9.5.2<br></blockquote><div><br>Oh my...<br><br>% ls -l /usr/include/linux/spi/spidev.h <br>-rw-r--r-- 1 root root 4595 Nov 14  2008 /usr/include/linux/spi/spidev.h<br><br></div></div>2008 !?! You are absolutely right.<br>
<br>% grep LINUX_VERSION_CODE /usr/include/linux/version.h<br>#define LINUX_VERSION_CODE 132635<br><br>That's version 2.6.27 !<br>I'll have a look around.<br><br>Thanks for guessing my issue, and thanks for the fix "maybe superfluous but just in case".<br>
And thanks for the explanation about the motherboard ;-)<br><br>Sincerely,<br>  =^.^=<br></div>