[vdr] [PATCH] DVB API wrapper patch v0.2 for VDR-1.5.14

Udo Richter 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...
Name: vdr-1.5.14-dvb-api-wrapper-0.2a.diff
Url: http://www.linuxtv.org/pipermail/vdr/attachments/20080204/2f01c2ee/attachment.txt 

More information about the vdr mailing list