$NetBSD: patch-unix_xserver_hw_vnc_Makefile.am,v 1.8 2025/02/24 13:04:58 wiz Exp $ --- unix/xserver/hw/vnc/Makefile.am.orig 2025-02-13 10:01:00.000000000 +0000 +++ unix/xserver/hw/vnc/Makefile.am @@ -19,6 +19,9 @@ AM_CPPFLAGS = \ AM_CXXFLAGS = -std=gnu++11 +# Hack to get the C headers to work when included from C++ code +AM_CXXFLAGS = -fpermissive + noinst_LTLIBRARIES = libvnccommon.la HDRS = vncExtInit.h vncHooks.h \ @@ -87,6 +90,6 @@ libvnc_la_CPPFLAGS = $(AM_CPPFLAGS) \ libvnc_la_LDFLAGS = -module -avoid-version -Wl,-z,now -libvnc_la_LIBADD = libvnccommon.la $(COMMON_LIBS) +libvnc_la_LIBADD = libvnccommon.la $(COMMON_LIBS) $(OS_LIB) EXTRA_DIST = Xvnc.man