polynomial-c    14/04/23 16:53:32

  Added:                kbd-2.0.1-big_endian.patch
  Log:
  Forgot to add patch file in previous commit
  
  (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 
0x981CA6FC)

Revision  Changes    Path
1.1                  sys-apps/kbd/files/kbd-2.0.1-big_endian.patch

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kbd/files/kbd-2.0.1-big_endian.patch?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-apps/kbd/files/kbd-2.0.1-big_endian.patch?rev=1.1&content-type=text/plain

Index: kbd-2.0.1-big_endian.patch
===================================================================
>From 363185b72ccb5279fa950a378ebd93c082078d39 Mon Sep 17 00:00:00 2001
From: Aaro Koskinen <[email protected]>
Date: Sat, 15 Mar 2014 01:32:56 +0200
Subject: libkeymap: fix kmap on big-endian machines

Currently "loadkeys" does not work properly (no keys are ever changed)
on big-endian machines (e.g. SPARC and other classic hardware)
due to incorrect typing. The patch fixes this.

Signed-off-by: Aaro Koskinen <[email protected]>

diff --git a/src/libkeymap/kmap.c b/src/libkeymap/kmap.c
index e529136..85a3bb3 100644
--- a/src/libkeymap/kmap.c
+++ b/src/libkeymap/kmap.c
@@ -37,7 +37,7 @@ int
 lk_key_exists(struct lk_ctx *ctx, unsigned int k_table, unsigned int k_index)
 {
        struct lk_array *map;
-       u_short *key;
+       unsigned int *key;
 
        map = lk_array_get_ptr(ctx->keymap, k_table);
        if (!map) {
-- 
cgit v0.10.1





Reply via email to