From 86299fbc2b9a79b144768aac10f9edfa3a4be5dc Mon Sep 17 00:00:00 2001 From: "Brian P. Hinz" Date: Wed, 4 Feb 2015 21:28:18 -0500 Subject: [PATCH] Fixes for build issues caused by recent restructuring * Add typedef for XF86OptionPtr for Xorg < 112 * Include stddef.h to prevent missing size_t definition errors * Workaround for libtool convenience library issue --- unix/xserver/hw/vnc/Makefile.am | 8 ++++++++ unix/xserver/hw/vnc/vncExtInit.h | 1 + unix/xserver/hw/vnc/vncModule.c | 3 +++ 3 files changed, 12 insertions(+) diff --git a/unix/xserver/hw/vnc/Makefile.am b/unix/xserver/hw/vnc/Makefile.am index 902aabf3..ab8becbd 100644 --- a/unix/xserver/hw/vnc/Makefile.am +++ b/unix/xserver/hw/vnc/Makefile.am @@ -31,6 +31,11 @@ Xvnc_SOURCES = xvnc.c \ $(top_srcdir)/Xi/stubs.c $(top_srcdir)/mi/miinitext.c \ $(top_srcdir)/fb/fbcmap_mi.c buildtime.c +# Xvnc contains no C++ sources so automake doesn't understand that we +# need to use the C++ compiler to link things. This is the upstream +# recommendation for coaxing automake. +nodist_EXTRA_Xvnc_SOURCES = dummy.cxx + Xvnc_CPPFLAGS = $(XVNC_CPPFLAGS) -DTIGERVNC -DNO_MODULE_EXTS \ -UHAVE_CONFIG_H \ -DXFree86Server -DVENDOR_RELEASE="$(VENDOR_RELEASE)" \ @@ -47,6 +52,9 @@ libvnc_ladir = $(moduledir)/extensions libvnc_la_SOURCES = vncModule.c +# See Xvnc magic above +nodist_EXTRA_libvnc_la_SOURCES = dummy.cxx + libvnc_la_CPPFLAGS = $(XVNC_CPPFLAGS) -I$(TIGERVNC_SRCDIR)/common -UHAVE_CONFIG_H \ -I$(top_srcdir)/hw/xfree86/common \ -I$(top_srcdir)/hw/xfree86/os-support \ diff --git a/unix/xserver/hw/vnc/vncExtInit.h b/unix/xserver/hw/vnc/vncExtInit.h index 6c9857c0..65cbbe40 100644 --- a/unix/xserver/hw/vnc/vncExtInit.h +++ b/unix/xserver/hw/vnc/vncExtInit.h @@ -20,6 +20,7 @@ #define __VNCEXTINIT_H__ #include +#include #include // Only from C++ diff --git a/unix/xserver/hw/vnc/vncModule.c b/unix/xserver/hw/vnc/vncModule.c index 5dcf875d..8cbf9c2d 100644 --- a/unix/xserver/hw/vnc/vncModule.c +++ b/unix/xserver/hw/vnc/vncModule.c @@ -29,6 +29,9 @@ #endif #include "xorg-version.h" +#if XORG <= 111 +typedef pointer XF86OptionPtr; +#endif #include "xf86.h" #include "xf86Module.h" -- 2.39.5