[PATCH] Several compat additions
- From: Trent Piepho <xyzzy (at) speakeasy.org>
- Date: Fri, 19 May 2006 11:39:35 -0700 (PDT)
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.
--
video4linux-list mailing list
Unsubscribe mailto:video4linux-list-request (at) redhat.com?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list