[vdr] [PATCH] DVB API wrapper patch v0.2 for VDR-1.5.14
udo_richter at gmx.de
Mon Feb 4 21:22:49 CET 2008
For people who encounter this bug on recent kernels:
dvb_api_wrapper.c:189: error: '__invalid_size_argument_for_IOC' cannot
appear in a constant-expression
This is caused by an obscure kernel compile check that is supposed to do
macro parameter checking for ioctl constants, but also prevents using
these constants in switch statements.
(Basically, it complains that an expression like this is not allowed:
case (true ? 1234 : some_var):
The glory details are in /usr/include/asm-generic/ioctl.h)
The attached (additional, because I'm lazy) patch works around this.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the vdr