diff options
author | Ran Benita <ran234@gmail.com> | 2012-02-25 21:09:28 +0200 |
---|---|---|
committer | Ran Benita <ran234@gmail.com> | 2012-02-26 21:08:55 +0200 |
commit | 04e687c9da4cd643779fa4571c7e452c4f7e2dc7 (patch) | |
tree | d7ec5af4f953d018ed91dde38c02250efc5df2cb /src/keysym.c | |
parent | 744527e9a9080368ffe21a92e6bfeb78102e68e9 (diff) | |
download | xorg-lib-libxkbcommon-04e687c9da4cd643779fa4571c7e452c4f7e2dc7.tar.gz |
makekeys: Fix build/target word size mismatch when cross-compiling
This matches commit 24283d40b1e4314c6647dda49d2a159833341a8b from
libX11:
Since makekeys is built using build environment's compiler and
runs natively, we have to make sure that the size of the
Signature type is the same on both the native environment
and the target, otherwise we get mismatches upon running X,
and some LSB test failures (xts5).
Use an unsigned 32-bit integer on all platforms.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Signed-off-by: Ran Benita <ran234@gmail.com>
Diffstat (limited to 'src/keysym.c')
-rw-r--r-- | src/keysym.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keysym.c b/src/keysym.c index 7580cdd..bd0a67b 100644 --- a/src/keysym.c +++ b/src/keysym.c @@ -95,7 +95,7 @@ uint32_t xkb_string_to_keysym(const char *s) { int i, n, h, c, idx; - unsigned long sig = 0; + uint32_t sig = 0; const char *p = s; const unsigned char *entry; unsigned char sig1, sig2; |