summaryrefslogtreecommitdiff
path: root/loadkmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'loadkmap.c')
-rw-r--r--loadkmap.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/loadkmap.c b/loadkmap.c
index 9057414..0e8c090 100644
--- a/loadkmap.c
+++ b/loadkmap.c
@@ -24,10 +24,20 @@
#include <errno.h>
#include <fcntl.h>
#include <stdio.h>
-#include <linux/kd.h>
-#include <linux/keyboard.h>
#include <sys/ioctl.h>
+/* From <linux/kd.h> */
+struct kbentry {
+ unsigned char kb_table;
+ unsigned char kb_index;
+ unsigned short kb_value;
+};
+#define KDSKBENT 0x4B47 /* sets one entry in translation table */
+
+/* From <linux/keyboard.h> */
+#define NR_KEYS 128
+#define MAX_NR_KEYMAPS 256
+
static const char loadkmap_usage[] = "loadkmap\n"
#ifndef BB_FEATURE_TRIVIAL_HELP