From eca03601fc34cb5234c5326effc377d5c13fbbb9 Mon Sep 17 00:00:00 2001 From: jperkin Date: Mon, 25 Feb 2019 09:48:26 +0000 Subject: libvncserver: Fix build on SunOS. --- net/libvncserver/Makefile | 4 +++- .../patches/patch-libvncclient_tls__openssl.c | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 net/libvncserver/patches/patch-libvncclient_tls__openssl.c 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 -- cgit v1.2.3