diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2011-09-22 18:44:13 -0400 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2016-10-10 22:52:32 +0200 |
commit | 62e5b0ff80f91a66163386e2192bcb8e0b2d1721 (patch) | |
tree | e4eaebd0b687cbfdf0dea8c2cb1f8a5689ba10b2 /nx-X11/lib/X11/Xresinternal.h | |
parent | 0bcb4bba2a1c4bf0464f0ce0305648ee539ece98 (diff) | |
download | nx-libs-62e5b0ff80f91a66163386e2192bcb8e0b2d1721.tar.gz nx-libs-62e5b0ff80f91a66163386e2192bcb8e0b2d1721.tar.bz2 nx-libs-62e5b0ff80f91a66163386e2192bcb8e0b2d1721.zip |
makekeys: Fix build/target word size mismatch when cross-compiling
Since makekeys is built using build environment's gcc 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. Also,
eliminate the redundant multiple typedefs for the
Signature type.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
Reviewed-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'nx-X11/lib/X11/Xresinternal.h')
-rw-r--r-- | nx-X11/lib/X11/Xresinternal.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/nx-X11/lib/X11/Xresinternal.h b/nx-X11/lib/X11/Xresinternal.h index b4b1b00f8..c2f355fe6 100644 --- a/nx-X11/lib/X11/Xresinternal.h +++ b/nx-X11/lib/X11/Xresinternal.h @@ -2,8 +2,10 @@ #ifndef _XRESINTERNAL_H_ #define _XRESINTERNAL_H_ +#include <inttypes.h> + /* type defines */ -typedef unsigned long Signature; +typedef uint32_t Signature; /* prototypes */ extern XrmQuark _XrmInternalStringToQuark( |