Blame SOURCES/tigervnc-xserver120.patch

be441b
diff -up xserver/configure.ac.xserver116-rebased xserver/configure.ac
be441b
--- xserver/configure.ac.xserver116-rebased	2016-09-29 13:14:45.595441590 +0200
be441b
+++ xserver/configure.ac	2016-09-29 13:14:45.631442006 +0200
be441b
@@ -74,6 +74,7 @@ dnl forcing an entire recompile.x
be441b
 AC_CONFIG_HEADERS(include/version-config.h)
be441b
be441b
 AM_PROG_AS
be441b
+AC_PROG_CXX
be441b
 AC_PROG_LN_S
be441b
 LT_PREREQ([2.2])
be441b
 LT_INIT([disable-static win32-dll])
be441b
@@ -1863,6 +1864,10 @@ if test "x$XVFB" = xyes; then
be441b
 	AC_SUBST([XVFB_SYS_LIBS])
be441b
 fi
be441b
be441b
+dnl Xvnc DDX
be441b
+AC_SUBST([XVNC_CPPFLAGS], ["-DHAVE_DIX_CONFIG_H $XSERVER_CFLAGS"])
be441b
+AC_SUBST([XVNC_LIBS], ["$FB_LIB $FIXES_LIB $XEXT_LIB $CONFIG_LIB $DBE_LIB $RECORD_LIB $GLX_LIBS $RANDR_LIB $RENDER_LIB $DAMAGE_LIB $DRI3_LIB $PRESENT_LIB $MIEXT_SYNC_LIB $MIEXT_DAMAGE_LIB $MIEXT_SHADOW_LIB $XI_LIB $XKB_LIB $XKB_STUB_LIB $COMPOSITE_LIB $MAIN_LIB"])
be441b
+AC_SUBST([XVNC_SYS_LIBS], ["$GLX_SYS_LIBS"])
be441b
be441b
 dnl Xnest DDX
be441b
be441b
@@ -1898,6 +1903,8 @@ if test "x$XORG" = xauto; then
be441b
 fi
be441b
 AC_MSG_RESULT([$XORG])
be441b
be441b
+AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
be441b
+
be441b
 if test "x$XORG" = xyes; then
be441b
 	XORG_DDXINCS='-I$(top_srcdir)/hw/xfree86 -I$(top_srcdir)/hw/xfree86/include -I$(top_srcdir)/hw/xfree86/common'
be441b
 	XORG_OSINCS='-I$(top_srcdir)/hw/xfree86/os-support -I$(top_srcdir)/hw/xfree86/os-support/bus -I$(top_srcdir)/os'
be441b
@@ -2116,7 +2123,6 @@ if test "x$XORG" = xyes; then
be441b
 	AC_DEFINE(XORG_SERVER, 1, [Building Xorg server])
be441b
 	AC_DEFINE(XORGSERVER, 1, [Building Xorg server])
be441b
 	AC_DEFINE(XFree86Server, 1, [Building XFree86 server])
be441b
-	AC_DEFINE_UNQUOTED(XORG_VERSION_CURRENT, [$VENDOR_RELEASE], [Current Xorg version])
be441b
 	AC_DEFINE(NEED_XF86_TYPES, 1, [Need XFree86 typedefs])
be441b
 	AC_DEFINE(NEED_XF86_PROTOTYPES, 1, [Need XFree86 helper functions])
be441b
 	AC_DEFINE(__XSERVERNAME__, "Xorg", [Name of X server])
be441b
@@ -2691,6 +2697,7 @@ hw/dmx/Makefile
be441b
 hw/dmx/man/Makefile
be441b
 hw/vfb/Makefile
be441b
 hw/vfb/man/Makefile
be441b
+hw/vnc/Makefile
be441b
 hw/xnest/Makefile
be441b
 hw/xnest/man/Makefile
be441b
 hw/xwin/Makefile
be441b
diff -up xserver/hw/Makefile.am.xserver116-rebased xserver/hw/Makefile.am
be441b
--- xserver/hw/Makefile.am.xserver116-rebased	2016-09-29 13:14:45.601441659 +0200
be441b
+++ xserver/hw/Makefile.am	2016-09-29 13:14:45.631442006 +0200
be441b
@@ -38,7 +38,8 @@ SUBDIRS =			\
be441b
 	$(DMX_SUBDIRS)		\
be441b
 	$(KDRIVE_SUBDIRS)	\
be441b
 	$(XQUARTZ_SUBDIRS)	\
be441b
-	$(XWAYLAND_SUBDIRS)
be441b
+	$(XWAYLAND_SUBDIRS)	\
be441b
+	vnc
be441b
be441b
 DIST_SUBDIRS = dmx xfree86 vfb xnest xwin xquartz kdrive xwayland
be441b
be441b
diff --git xserver/mi/miinitext.c xserver/mi/miinitext.c
be441b
index 5596e21..003fc3c 100644
be441b
--- xserver/mi/miinitext.c
be441b
+++ xserver/mi/miinitext.c
be441b
@@ -107,8 +107,15 @@ SOFTWARE.
be441b
 #include "os.h"
be441b
 #include "globals.h"
be441b
be441b
+#ifdef TIGERVNC
be441b
+extern void vncExtensionInit(INITARGS);
be441b
+#endif
be441b
+
be441b
 /* List of built-in (statically linked) extensions */
be441b
 static const ExtensionModule staticExtensions[] = {
be441b
+#ifdef TIGERVNC
be441b
+    {vncExtensionInit, "VNC-EXTENSION", NULL},
be441b
+#endif
be441b
     {GEExtensionInit, "Generic Event Extension", &noGEExtension},
be441b
     {ShapeExtensionInit, "SHAPE", NULL},
be441b
 #ifdef MITSHM
be441b
--- xserver/include/os.h~	2016-10-03 09:07:29.000000000 +0200
be441b
+++ xserver/include/os.h	2016-10-03 14:13:00.013654506 +0200
be441b
@@ -621,7 +621,7 @@
be441b
 extern _X_EXPORT void
be441b
 LogClose(enum ExitCode error);
be441b
 extern _X_EXPORT Bool
be441b
-LogSetParameter(LogParameter param, int value);
be441b
+LogSetParameter(enum _LogParameter param, int value);
be441b
 extern _X_EXPORT void
be441b
 LogVWrite(int verb, const char *f, va_list args)
be441b
 _X_ATTRIBUTE_PRINTF(2, 0);