Duncan Haldane wrote:
Here's my problem: The 2.4.19 changes break
hot-unplugging code that uses the old interface.
But they are also present in the 2.4.18
kernels used by RedHat 7.x
Is there any way the preprocessor could detect
the changed interface? (or RedHat patching)
(I didnt see any
#define V4L_VERSION xxxx
in videodev.h)
I think
#if defined(video_devdata)
should work. It was introduced in the patch that redesigned the interface.
Careful though... the new interface was broken (and incompatible with
the current interface) in kernels that had a video_generic_ioctl()
function. IIRC only a few 2.4.19-pre kernels were affected but I can't
say that for certain.
--
Mark McClelland
mark@xxxxxxxxxxxxxxxx