Is there any #ifdef way to detect the new v4l interface?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi,

I've been updating the cpia V4L driver distributed from sourceforge as
a replacement for the kernel version (needed until all the 
accumulated enhancements make it into the kernel - hopefully in 2.4.21).

The sourceforge version is full of preprocessor instructions such as,
in particular (now)

#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,19))
#define NEW_V4L_INTERFACE 1
#endif

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) 

Duncan
----------------------------------
E-Mail: Duncan Haldane <f.duncan.m.haldane@xxxxxxxxxxxxxxxx>
Date: 11-Dec-2002
Time: 23:24:50

This message was sent by XFMail
----------------------------------





[Index of Archives]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [Linux USB]

Powered by Linux