summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2019-02-25 09:48:26 +0000
committerjperkin <jperkin@pkgsrc.org>2019-02-25 09:48:26 +0000
commiteca03601fc34cb5234c5326effc377d5c13fbbb9 (patch)
treef186c5c8f8b94b1f9df6b75c500f20220c2283fd
parentdc9ac48776caddfce8c16bc9c74227caaf8ec6ac (diff)
downloadpkgsrc-eca03601fc34cb5234c5326effc377d5c13fbbb9.tar.gz
libvncserver: Fix build on SunOS.
-rw-r--r--net/libvncserver/Makefile4
-rw-r--r--net/libvncserver/patches/patch-libvncclient_tls__openssl.c15
2 files changed, 18 insertions, 1 deletions
diff --git a/net/libvncserver/Makefile b/net/libvncserver/Makefile
index 757ccfb7a64..22bc2696a68 100644
--- a/net/libvncserver/Makefile
+++ b/net/libvncserver/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.27 2019/02/20 12:21:34 ryoon Exp $
+# $NetBSD: Makefile,v 1.28 2019/02/25 09:48:26 jperkin Exp $
#
DISTNAME= libvncserver-LibVNCServer-0.9.12
@@ -34,6 +34,8 @@ CMAKE_ARGS+= -DWITH_ZLIB=ON
CMAKE_ARGS+= -DWITH_JPEG=ON
CMAKE_ARGS+= -DWITH_PNG=ON
+LDFLAGS.SunOS+= -lsocket
+
.include "options.mk"
.include "../../archivers/lzo/buildlink3.mk"
diff --git a/net/libvncserver/patches/patch-libvncclient_tls__openssl.c b/net/libvncserver/patches/patch-libvncclient_tls__openssl.c
new file mode 100644
index 00000000000..683c9c951ab
--- /dev/null
+++ b/net/libvncserver/patches/patch-libvncclient_tls__openssl.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-libvncclient_tls__openssl.c,v 1.1 2019/02/25 09:48:26 jperkin Exp $
+
+Bump _XOPEN_SOURCE to the same as other files to avoid C99 issues.
+
+--- libvncclient/tls_openssl.c.orig 2019-01-06 19:09:30.000000000 +0000
++++ libvncclient/tls_openssl.c
+@@ -19,7 +19,7 @@
+ */
+
+ #ifndef _MSC_VER
+-#define _XOPEN_SOURCE 500
++#define _XOPEN_SOURCE 600
+ #endif
+
+ #include <rfb/rfbclient.h>