summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}