summaryrefslogtreecommitdiff
path: root/packages/xqt2/files/xchar2b.patch
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-05-13 19:16:07 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-13 19:16:07 +0000
commit95e7c0ab24272bde3c1c5d4b89f53ecd8c402125 (patch)
treefc48957a9b3f25ad855ae572e3a62b67e31c91d3 /packages/xqt2/files/xchar2b.patch
parentbbd7bd75f82d177e6ea894672148a76f0b0e6d92 (diff)
add Xqt2, an X server for Opie environments. patch courtesy Enodr <nicolasfr@gmail.com> - thanks!
Diffstat (limited to 'packages/xqt2/files/xchar2b.patch')
-rw-r--r--packages/xqt2/files/xchar2b.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/packages/xqt2/files/xchar2b.patch b/packages/xqt2/files/xchar2b.patch
new file mode 100644
index 0000000000..5561bc4ec7
--- /dev/null
+++ b/packages/xqt2/files/xchar2b.patch
@@ -0,0 +1,25 @@
+* XChar2b patch
+
+This is *EXTREMELY* important patch to handle strings contains 2-byte character
+correctly on ARM architecture hardware.
+
+On ARM architecture, size of the XChar2b structure will be 4, because gcc
+adds 2 byte padding at the last of the structure. This will breaks the
+XChar2b stream!
+
+This patch makes the size of the structure to 2 byte, with
+__attribute__ ((packed)) declaration.
+
+
+diff -ur xc.org/lib/X11/Xlib.h xc/lib/X11/Xlib.h
+--- xc.org/lib/X11/Xlib.h 2002-06-01 03:45:42.000000000 +0900
++++ xc/lib/X11/Xlib.h 2004-09-16 19:19:46.000000000 +0900
+@@ -1059,7 +1059,7 @@
+ typedef struct { /* normal 16 bit characters are two bytes */
+ unsigned char byte1;
+ unsigned char byte2;
+-} XChar2b;
++} __attribute__ ((packed)) XChar2b;
+
+ typedef struct {
+ XChar2b *chars; /* two byte characters */