diff --git a/libwebsockets.spec b/libwebsockets.spec index 2492938..3ba8e86 100644 --- a/libwebsockets.spec +++ b/libwebsockets.spec @@ -10,6 +10,7 @@ Summary: A lightweight C library for Websockets License: LGPLv2 and Public Domain and BSD and MIT and zlib URL: http://libwebsockets.org Source0: https://github.com/warmcat/libwebsockets/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: sock-fix-build.patch BuildRequires: cmake BuildRequires: gcc diff --git a/sock-fix-build.patch b/sock-fix-build.patch new file mode 100644 index 0000000..2583db9 --- /dev/null +++ b/sock-fix-build.patch @@ -0,0 +1,20 @@ +Author: Sviatoslav Grebenchucov +Date: Sun Aug 25 20:52:20 2019 +0200 + +socks: Fix compilation error + + +diff --git a/lib/roles/http/client/client.c b/lib/roles/http/client/client.c +index 65b7c54..b1e795d 100644 +--- a/lib/roles/http/client/client.c ++++ b/lib/roles/http/client/client.c +@@ -214,7 +214,7 @@ lws_client_socket_service(struct lws *wsi, struct lws_pollfd *pollfd, + lwsl_client("SOCKS password OK, sending connect\n"); + if (socks_generate_msg(wsi, SOCKS_MSG_CONNECT, &len)) { + socks_send_msg_fail: +- *cce = "socks gen msg fail"; ++ cce = "socks gen msg fail"; + goto bail3; + } + conn_mode = LRS_WAITING_SOCKS_CONNECT_REPLY; +