Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-07-08 22:55:24 +0400
committerEric Andersen <andersen@codepoet.org>2000-07-08 22:55:24 +0400
commitbd22ed806782eec76929bcd2ec556717e79d24c7 (patch)
treee225367aaef198eacec8ed0b530d36a9d888d92f /console-tools/setkeycodes.c
parent877a71bbf0b8386add4631c08f7101259ad2dc07 (diff)
Update files to reduce dependance on kernel version...
-Erik
Diffstat (limited to 'console-tools/setkeycodes.c')
-rw-r--r--console-tools/setkeycodes.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c
index 9062caf75..1bdb909ea 100644
--- a/console-tools/setkeycodes.c
+++ b/console-tools/setkeycodes.c
@@ -27,7 +27,14 @@
#include <stdlib.h>
#include <fcntl.h>
#include <sys/ioctl.h>
-#include <linux/kd.h>
+
+
+/* From <linux/kd.h> */
+struct kbkeycode {
+ unsigned int scancode, keycode;
+};
+#define KDSETKEYCODE 0x4B4D /* write kernel keycode table entry */
+
static const char setkeycodes_usage[] =
"setkeycodes SCANCODE KEYCODE ...\n"