Another attempt at supporting older Xorg versions.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@5080 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/xserver/hw/vnc/InputXKB.cc b/unix/xserver/hw/vnc/InputXKB.cc
index 65c4400..6fca362 100644
--- a/unix/xserver/hw/vnc/InputXKB.cc
+++ b/unix/xserver/hw/vnc/InputXKB.cc
@@ -43,7 +43,8 @@
}
#if XORG < 19
-static DevPrivateKey vncXkbScreenPrivateKey = &vncXkbScreenPrivateKey;
+static int vncXkbScreenPrivateKeyIndex;
+static DevPrivateKey vncXkbScreenPrivateKey = &vncXkbScreenPrivateKeyIndex;
#else
static DevPrivateKeyRec vncXkbPrivateKeyRec;
#define vncXkbScreenPrivateKey (&vncXkbPrivateKeyRec)