From 87290a8497e892a65bde4755c4fee8b8ca93424b Mon Sep 17 00:00:00 2001 From: Yu Ke Date: Fri, 4 Mar 2011 21:11:37 +0800 Subject: 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 (From OE-Core rev: da4b22c8bdf00813164d8830e52e1d6ad35cdd94) Signed-off-by: Yu Ke Signed-off-by: Richard Purdie --- .../recipes-graphics/x11vnc/files/endian-fix.patch | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 meta/recipes-graphics/x11vnc/files/endian-fix.patch (limited to 'meta/recipes-graphics/x11vnc/files/endian-fix.patch') 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 @@ +libvncserver: replace LIBVNCSERVER_WORDS_BIGENDIAN with WORDS_BIGENDIAN + +since macro AC_C_BIGENDIAN is used in autoconf and WORDS_BIGENDIAN is +automatically set for different arch, it is better to use WORDS_BIGENDIAN +instead of LIBVNCSERVER_WORDS_BIGENDIAN, which cuase issue in mips. + +Signed-off-by: Yu Ke + +diff --git a/libvncserver/main.c b/libvncserver/main.c +index b6bd930..8bbb7bf 100644 +--- a/libvncserver/main.c ++++ b/libvncserver/main.c +@@ -47,7 +47,7 @@ static MUTEX(extMutex); + + static int rfbEnableLogging=1; + +-#ifdef LIBVNCSERVER_WORDS_BIGENDIAN ++#ifdef WORDS_BIGENDIAN + char rfbEndianTest = (1==0); + #else + char rfbEndianTest = (1==1); + -- cgit v1.2.3-54-g00ecf