pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/libvncserver libvncserver: Fix build on SunOS.
details: https://anonhg.NetBSD.org/pkgsrc/rev/d62a0b80fdfe
branches: trunk
changeset: 330214:d62a0b80fdfe
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Mon Feb 25 09:48:26 2019 +0000
description:
libvncserver: Fix build on SunOS.
diffstat:
net/libvncserver/Makefile | 4 ++-
net/libvncserver/patches/patch-libvncclient_tls__openssl.c | 15 ++++++++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r f930b5b4c876 -r d62a0b80fdfe net/libvncserver/Makefile
--- a/net/libvncserver/Makefile Mon Feb 25 09:21:36 2019 +0000
+++ b/net/libvncserver/Makefile Mon Feb 25 09:48:26 2019 +0000
@@ -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_JPEG=ON
CMAKE_ARGS+= -DWITH_PNG=ON
+LDFLAGS.SunOS+= -lsocket
+
.include "options.mk"
.include "../../archivers/lzo/buildlink3.mk"
diff -r f930b5b4c876 -r d62a0b80fdfe net/libvncserver/patches/patch-libvncclient_tls__openssl.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libvncserver/patches/patch-libvncclient_tls__openssl.c Mon Feb 25 09:48:26 2019 +0000
@@ -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>
Home |
Main Index |
Thread Index |
Old Index