Blame SOURCES/tigervnc-xserver120.patch

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