Make empcd compile on 2.4
authorFlorian Fainelli <florian@openwrt.org>
Thu, 14 Jun 2007 09:53:50 +0000 (09:53 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Thu, 14 Jun 2007 09:53:50 +0000 (09:53 +0000)
SVN-Revision: 7629

sound/empcd/patches/001-input_defs.patch [new file with mode: 0644]

diff --git a/sound/empcd/patches/001-input_defs.patch b/sound/empcd/patches/001-input_defs.patch
new file mode 100644 (file)
index 0000000..66fa49f
--- /dev/null
@@ -0,0 +1,14 @@
+diff -urN empcd/empcd.h empcd.new/empcd.h
+--- empcd/empcd.h      2005-11-29 01:35:30.000000000 +0100
++++ empcd.new/empcd.h  2007-06-14 11:54:14.000000000 +0200
+@@ -24,6 +24,10 @@
+ #include <pwd.h>
+ /* Linux specific... */
++#include <linux/version.h>
++#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
++#define EVIOCGRAB             _IOW('E', 0x90, int)                    /* Grab/Release device */
++#endif
+ #include <linux/input.h>
+ #ifndef NULL