Re: Re: [PATCH] Implement repeat key handling in budget-ci IR

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

 



Oliver Endriss wrote:
> Jouni wrote:
> > During make I get this:
> > 
> > /usr/local/src/v4ltesti/v4l-dvb/v4l/budget-ci.c:110: error: expected
> > identifier before numeric constant
> > make[3]: *** [/usr/local/src/v4ltesti/v4l-dvb/v4l/budget-ci.o] Error 1
> > make[2]: *** [_module_/usr/local/src/v4ltesti/v4l-dvb/v4l] Error 2
> > make[2]: Leaving directory `/usr/src/linux-headers-2.6.17-50-generic'
> > make[1]: *** [default] Virhe 2
> > make[1]: Poistutaan hakemistosta "/usr/local/src/v4ltesti/v4l-dvb/v4l"
> > make: *** [all] Virhe 2
> > 
> > Did I botch something or is there a glitch in the code?
> 
> Does the attached patch fix it for you?

Ok, I tried to compile against 2.6.18 and it still doesn't work.
The attached patch fixes it...

CU
Oliver

-- 
--------------------------------------------------------
VDR Remote Plugin 0.3.9 available at
http://www.escape-edv.de/endriss/vdr/
--------------------------------------------------------
diff -r 1697764d339d linux/drivers/media/dvb/ttpci/budget-ci.c
--- a/linux/drivers/media/dvb/ttpci/budget-ci.c	Sun Feb 25 14:40:47 2007 +0100
+++ b/linux/drivers/media/dvb/ttpci/budget-ci.c	Sun Feb 25 20:02:58 2007 +0100
@@ -100,17 +100,8 @@ struct budget_ci_ir {
 	int rc5_device;
 	u32 last_raw;
 	u32 ir_key;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
 	bool have_command;
 };
-#else
-	int have_command;
-};
-enum {
-	false	= 0,
-	true	= 1
-};
-#endif
 
 struct budget_ci {
 	struct budget budget;
diff -r 1697764d339d v4l/compat.h
--- a/v4l/compat.h	Sun Feb 25 14:40:47 2007 +0100
+++ b/v4l/compat.h	Sun Feb 25 20:02:39 2007 +0100
@@ -357,6 +357,8 @@ usb_to_input_id(const struct usb_device 
 # define PCIAGP_FAIL 0
 
 #define vmalloc_32_user(a) vmalloc_32(a)
+
+typedef int bool;
 #endif
 
 #ifndef true
_______________________________________________
linux-dvb mailing list
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