libwebsockets: update to 2.0.1.

This commit is contained in:
Michael Gehring 2016-05-12 16:58:00 +02:00
parent d797a468fe
commit 357e5c1a83
3 changed files with 2 additions and 37 deletions

View File

@ -1,11 +0,0 @@
--- lib/server.c.orig 2016-05-05 22:02:19.415381744 +0200
+++ lib/server.c 2016-05-05 22:02:25.795382036 +0200
@@ -67,7 +67,7 @@ lws_context_init_server(struct lws_conte
else
#endif
#ifdef LWS_USE_IPV6
- if (LWS_IPV6_ENABLED(context))
+ if (LWS_IPV6_ENABLED(vhost->context))
sockfd = socket(AF_INET6, SOCK_STREAM, 0);
else
#endif

View File

@ -1,24 +0,0 @@
--- lib/ssl.c.orig 2016-05-05 21:56:47.926366544 +0200
+++ lib/ssl.c 2016-05-05 21:56:11.400364869 +0200
@@ -197,7 +197,9 @@ lws_ssl_destroy(struct lws_vhost *vhost)
#if (OPENSSL_VERSION_NUMBER < 0x01000000) || defined(USE_WOLFSSL)
ERR_remove_state(0);
#else
-#if (OPENSSL_VERSION_NUMBER >= 0x10100005L)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100005L) && \
+ !defined(LIBRESSL_VERSION_NUMBER) && \
+ !defined(OPENSSL_IS_BORINGSSL)
ERR_remove_thread_state();
#else
ERR_remove_thread_state(NULL);
@@ -689,7 +691,9 @@ lws_ssl_context_destroy(struct lws_context *context)
#if (OPENSSL_VERSION_NUMBER < 0x01000000) || defined(USE_WOLFSSL)
ERR_remove_state(0);
#else
-#if (OPENSSL_VERSION_NUMBER >= 0x10100005L)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100005L) && \
+ !defined(LIBRESSL_VERSION_NUMBER) && \
+ !defined(OPENSSL_IS_BORINGSSL)
ERR_remove_thread_state();
#else
ERR_remove_thread_state(NULL);

View File

@ -1,6 +1,6 @@
# Template file for 'libwebsockets'
pkgname=libwebsockets
version=2.0.0
version=2.0.1
revision=1
build_style=cmake
hostmakedepends="cmake"
@ -11,7 +11,7 @@ maintainer="Enno Boland <gottox@voidlinux.eu>"
license="LGPL-2"
homepage="https://libwebsockets.org"
distfiles="https://github.com/warmcat/libwebsockets/archive/v$version.tar.gz"
checksum=c2fa0f62caa9a82b2032af42f577e9079cc743889f02828a332211197ba43995
checksum=f98cf9e35385863cfe64a5f181403bf3113cc5d82604c4811e1373ba8676ef88
CFLAGS="-Wno-error"
libwebsockets-devel_package() {