Permalink
Browse files

Build vncviewer with -DMITSHM to greatly increase performance while

running on the modesetting driver

ok sthen
  • Loading branch information...
jcs committed Jul 5, 2018
1 parent 79e3770 commit 1cc15fd2150e0a5dbb127bebaa9ca9e9a21d0b71
Showing with 16 additions and 2 deletions.
  1. +2 −2 net/ssvnc/Makefile
  2. +14 −0 net/ssvnc/patches/patch-vnc_unixsrc_vncviewer_Imakefile
@@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.32 2018/06/27 21:04:00 espie Exp $
# $OpenBSD: Makefile,v 1.33 2018/07/05 14:55:22 jcs Exp $
COMMENT-gui = enhanced TightVNC client GUI and wrappers
COMMENT-main = enhanced TightVNC client
@@ -11,7 +11,7 @@ EPOCH = 0
FULLPKGNAME-gui = ssvnc-$V
FULLPKGNAME-main = ssvnc-viewer-$V
REVISION-gui = 3
REVISION-main = 0
REVISION-main = 1
CATEGORIES = net x11
@@ -0,0 +1,14 @@
$OpenBSD: patch-vnc_unixsrc_vncviewer_Imakefile,v 1.1 2018/07/05 14:55:22 jcs Exp $
Index: vnc_unixsrc/vncviewer/Imakefile
--- vnc_unixsrc/vncviewer/Imakefile.orig
+++ vnc_unixsrc/vncviewer/Imakefile
@@ -6,7 +6,7 @@ EXTRA_DEFINES = -D__EXTENSIONS__
XCOMM Shared memory support works OK on x86 linux, not tested elsewhere but
XCOMM seems to cause problems on Digital Unix.
-#if defined(i386Architecture) && defined(LinuxArchitecture)
+#if (defined(i386Architecture) && defined(LinuxArchitecture)) || defined(OpenBSDArchitecture)
DEFINES = -DMITSHM
#endif

0 comments on commit 1cc15fd

Please sign in to comment.