Mikael Rahbek wrote:
> Hi
> 
> I have pulled the latest SocketCan from 
> http://svn.berlios.de/svnroot/repos/socketcan/trunk
> 
> But when I compile the utilities I get a compile error:
> 
> candump.c:526: error: 'SO_RXQ_OVFL' undeclared (first use in this function)
> 
> This is if I compile it on Fedora 11.
> 
> Is it only possible to compile, if the kernel version is 2.6.33?
> 

Of course it should compile always and only complain, if it run's on a Kernel
< 2.6.33 when dropcount is required.

For that reason, i added

   -DSO_RXQ_OVFL=40

in trunk/can-utils/Makefile

Do you still have this problem when using the Makefile there?

It would be possible to add something like

#ifndef SO_RXQ_OVFL
#define SO_RXQ_OVFL 40
#endif

into the code of candump.c but this looked a bit hackish to me.

I don't have a strong preference to put this definition only into the compiler
defines (in the Makefile). Any other opinion out there how to handle this?

Regards,
Oliver
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to