diff options
author | Ed Swarthout <Ed.Swarthout@hwdebug.com> | 2009-11-22 21:56:39 +0000 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2010-01-25 18:40:55 +0800 |
commit | 25164769ce940ae09c4fea0a70de1e05806de75f (patch) | |
tree | 4d19b7f5c37adb56fe75032a6bb7d5e47f15d56e /recipes/vnc/files/x11vnc-0.9.8-xshm-header-fix.patch | |
parent | ccffb0d58e3b36b3be440b9ceadb05ebabe0d847 (diff) |
x11vnc-0.9.8 fix xshm header
Backport X_ShmAttach fix from 0.9.9
Signed-off-by: Ed Swarthout <Ed.Swarthout@hwdebug.com>
Signed-off-by: Holger Hans Peter Freyther <zecke@selfish.org>
Diffstat (limited to 'recipes/vnc/files/x11vnc-0.9.8-xshm-header-fix.patch')
-rw-r--r-- | recipes/vnc/files/x11vnc-0.9.8-xshm-header-fix.patch | 15 |
1 files changed, 15 insertions, 0 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 0000000000..3383f63365 --- /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; + |