[oe-commits] Ed Swarthout : x11vnc-0.9.8 fix xshm header

git version control git at git.openembedded.org
Sun Jan 24 10:39:20 UTC 2010


Module: openembedded.git
Branch: holger/staging-branch
Commit: 18fca95420c6b65b067d12074e4fab3a78749110
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=18fca95420c6b65b067d12074e4fab3a78749110

Author: Ed Swarthout <Ed.Swarthout at hwdebug.com>
Date:   Sun Nov 22 21:56:39 2009 +0000

x11vnc-0.9.8 fix xshm header

Backport X_ShmAttach fix from 0.9.9

Signed-off-by: Ed Swarthout <Ed.Swarthout at hwdebug.com>

---

 .../vnc/files/x11vnc-0.9.8-xshm-header-fix.patch   |   15 +++++++++++++++
 recipes/vnc/x11vnc_0.9.8.bb                        |    3 ++-
 2 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/recipes/vnc/files/x11vnc-0.9.8-xshm-header-fix.patch b/recipes/vnc/files/x11vnc-0.9.8-xshm-header-fix.patch
new file mode 100644
index 0000000..3383f63
--- /dev/null
+++ b/recipes/vnc/files/x11vnc-0.9.8-xshm-header-fix.patch
@@ -0,0 +1,15 @@
+Looks like X_ShmAttach is considered private to the library and has been removed from its headers.
+Just hardcode the value, it's only usd to print some help in case of an shm attach error.
+--- x11vnc-0.9.8/x11vnc/cleanup.c
++++ x11vnc-0.9.8/x11vnc/cleanup.c
+@@ -276,6 +276,10 @@
+	return 0;
+ }
+
++#ifndef X_ShmAttach
++#define X_ShmAttach 1
++#endif
++
+ static int Xerror(Display *d, XErrorEvent *error) {
+	X_UNLOCK;
+
diff --git a/recipes/vnc/x11vnc_0.9.8.bb b/recipes/vnc/x11vnc_0.9.8.bb
index f3d706b..8c807f2 100644
--- a/recipes/vnc/x11vnc_0.9.8.bb
+++ b/recipes/vnc/x11vnc_0.9.8.bb
@@ -5,6 +5,7 @@ SECTION = "x11/utils"
 LICENSE = "GPL"
 DEPENDS = "openssl virtual/libx11 libxtst libxext avahi jpeg zlib"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/libvncserver/x11vnc-${PV}.tar.gz"
+SRC_URI = "${SOURCEFORGE_MIRROR}/libvncserver/x11vnc-${PV}.tar.gz \
+	   file://x11vnc-0.9.8-xshm-header-fix.patch;patch=1"
 
 inherit autotools





More information about the Openembedded-commits mailing list