Re: [PATCH] Several compat additions

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

 



On Fri, 19 May 2006, Mauro Carvalho Chehab wrote:
> Em Qua, 2006-05-17 ās 16:54 -0700, Trent Piepho escreveu:
> > Sorry, I'm not sure what you mean.  There are two different ways to make
> > konicawc back compatable here.  Christoph's way won't work, usb.h shouldn't
> > bother non-usb devices, but it does.  If it worked, that's what I would have
> > done in the first place.
>
> What i mean is something like:
>
> #if kernel < 2.6.13
> #include <usb.h>
> #endif

Put this in konicawc.c I assume.  It will still need an extra include,
version.h, like this:

 #include <linux/input.h>
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,13)
+#include <linux/usb.h>
+#else
 #include <linux/usb_input.h>
+#endif

This will have #include <linux/version.h> still there after gentree.pl

Or this:

 #include <linux/input.h>
+#include <linux/usb.h>
+#include "compat.h"
+#ifndef V4LCOMPAT_NO_USB_INPUT
 #include <linux/usb_input.h>
+#endif

Has extra #include <linux/usb.h> after gentree.pl.  I do not think there is
any way to have no changes at all.

_______________________________________________

linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb


[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux