[package] input-utils: update to make it works with new kernels.
Signed-off-by: Jochen Friedrich <jochen@scram.de> git-svn-id: svn://svn.openwrt.org/openwrt/packages@25615 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
34
utils/input-utils/patches/002-version-check.patch
Normal file
34
utils/input-utils/patches/002-version-check.patch
Normal file
@ -0,0 +1,34 @@
|
||||
From d99f056745e53cd2518ca169af474f8c45c1436d Mon Sep 17 00:00:00 2001
|
||||
From: Gerd Hoffmann <kraxel@redhat.com>
|
||||
Date: Wed, 26 Jan 2011 21:01:05 +0100
|
||||
Subject: [PATCH] remove version check
|
||||
|
||||
---
|
||||
input.c | 11 -----------
|
||||
1 files changed, 0 insertions(+), 11 deletions(-)
|
||||
|
||||
diff --git a/input.c b/input.c
|
||||
index a9bd5e8..9a6a810 100644
|
||||
--- a/input.c
|
||||
+++ b/input.c
|
||||
@@ -96,17 +96,6 @@ int device_open(int nr, int verbose)
|
||||
if (verbose)
|
||||
fprintf(stderr,"%s\n",filename);
|
||||
|
||||
- if (-1 == ioctl(fd,EVIOCGVERSION,&version)) {
|
||||
- perror("ioctl EVIOCGVERSION");
|
||||
- close(fd);
|
||||
- return -1;
|
||||
- }
|
||||
- if (EV_VERSION > version) {
|
||||
- fprintf(stderr, "protocol version mismatch (expected >= %d, got %d)\n",
|
||||
- EV_VERSION, version);
|
||||
- close(fd);
|
||||
- return -1;
|
||||
- }
|
||||
return fd;
|
||||
}
|
||||
|
||||
--
|
||||
1.7.2.3
|
||||
|
Reference in New Issue
Block a user