diff options
author | jperkin <jperkin@pkgsrc.org> | 2019-02-25 09:48:26 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2019-02-25 09:48:26 +0000 |
commit | eca03601fc34cb5234c5326effc377d5c13fbbb9 (patch) | |
tree | f186c5c8f8b94b1f9df6b75c500f20220c2283fd | |
parent | dc9ac48776caddfce8c16bc9c74227caaf8ec6ac (diff) | |
download | pkgsrc-eca03601fc34cb5234c5326effc377d5c13fbbb9.tar.gz |
libvncserver: Fix build on SunOS.
-rw-r--r-- | net/libvncserver/Makefile | 4 | ||||
-rw-r--r-- | net/libvncserver/patches/patch-libvncclient_tls__openssl.c | 15 |
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> |