summaryrefslogtreecommitdiffstats
path: root/unix/xserver
diff options
context:
space:
mode:
authorTim Waugh <twaugh@redhat.com>2014-09-04 10:52:06 +0100
committerTim Waugh <twaugh@redhat.com>2014-09-04 10:52:06 +0100
commit49c8f8c1b72bbd3f5e6ccaa1addc222130ca22ea (patch)
tree2551f8e98574490884841ed632a5ed3b0283ed45 /unix/xserver
parente2fe5f8a1faa6f64e60e358164e985d3df725133 (diff)
downloadtigervnc-49c8f8c1b72bbd3f5e6ccaa1addc222130ca22ea.tar.gz
tigervnc-49c8f8c1b72bbd3f5e6ccaa1addc222130ca22ea.zip
Another LoadExtensionList() that needs an #ifdef.
Diffstat (limited to 'unix/xserver')
-rw-r--r--unix/xserver/hw/vnc/xf86vncModule.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/unix/xserver/hw/vnc/xf86vncModule.cc b/unix/xserver/hw/vnc/xf86vncModule.cc
index 596d399a..6bf5e3d8 100644
--- a/unix/xserver/hw/vnc/xf86vncModule.cc
+++ b/unix/xserver/hw/vnc/xf86vncModule.cc
@@ -83,7 +83,11 @@ _X_EXPORT XF86ModuleData vncModuleData = { &vncVersRec, vncSetup, NULL };
static void *
vncSetup(void * module, void * opts, int *errmaj, int *errmin) {
+#if XORG >= 116
LoadExtensionList(&vncExt, 1, FALSE);
+#else
+ LoadExtension(&vncExt, FALSE);
+#endif
/* Need a non-NULL return value to indicate success */
return (void *)1;
}