summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/x11vnc/files
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-03-04 21:11:37 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-03-04 22:26:40 +0000
commit87290a8497e892a65bde4755c4fee8b8ca93424b (patch)
tree3286cdf53d93a7d560443bc907ab009e15fecfbb /meta/recipes-graphics/x11vnc/files
parent0bc244181fce67725ddd0981481e5611b700cf51 (diff)
downloadpoky-87290a8497e892a65bde4755c4fee8b8ca93424b.tar.gz
x11vnc: fix the endian issue in mips for bug 782
x11vnc use LIBVNCSERVER_WORDS_BIGENDIAN to handle the endian, however it is not set correctly when cross-compile for mips, thus x11vnc mips does not work correctly. meanwhile, x11vnc has the autconf macro AC_C_BIGENDIAN which can handle the endian correctly. so this patch replace the LIBVNCSERVER_WORDS_BIGENDIAN with WORDS_BIGENDIAN (generated by AC_C_BIGENDIAN) to fix this issue. this patch fix the bug [YOCTO #782] this appraoch is suggested by Khem Raj CC: Khem Raj <raj.khem@gmail.com> (From OE-Core rev: da4b22c8bdf00813164d8830e52e1d6ad35cdd94) Signed-off-by: Yu Ke <ke.yu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/x11vnc/files')
-rw-r--r--meta/recipes-graphics/x11vnc/files/endian-fix.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/meta/recipes-graphics/x11vnc/files/endian-fix.patch b/meta/recipes-graphics/x11vnc/files/endian-fix.patch
new file mode 100644
index 0000000000..0b5e4709f5
--- /dev/null
+++ b/meta/recipes-graphics/x11vnc/files/endian-fix.patch
@@ -0,0 +1,22 @@
1libvncserver: replace LIBVNCSERVER_WORDS_BIGENDIAN with WORDS_BIGENDIAN
2
3since macro AC_C_BIGENDIAN is used in autoconf and WORDS_BIGENDIAN is
4automatically set for different arch, it is better to use WORDS_BIGENDIAN
5instead of LIBVNCSERVER_WORDS_BIGENDIAN, which cuase issue in mips.
6
7Signed-off-by: Yu Ke <ke.yu@intel.com>
8
9diff --git a/libvncserver/main.c b/libvncserver/main.c
10index b6bd930..8bbb7bf 100644
11--- a/libvncserver/main.c
12+++ b/libvncserver/main.c
13@@ -47,7 +47,7 @@ static MUTEX(extMutex);
14
15 static int rfbEnableLogging=1;
16
17-#ifdef LIBVNCSERVER_WORDS_BIGENDIAN
18+#ifdef WORDS_BIGENDIAN
19 char rfbEndianTest = (1==0);
20 #else
21 char rfbEndianTest = (1==1);
22