#ifndef _WINSOCK_DEPRECATED_NO_WARNINGS
#define _WINSOCK_DEPRECATED_NO_WARNINGS
#endif
-#include "core/private.h"
+#include "private-lib-core.h"
+ int
+ _lws_plat_service_forced_tsi(struct lws_context *context, int tsi)
+ {
+ struct lws_context_per_thread *pt = &context->pt[tsi];
+ int m, n;
+
+ lws_service_flag_pending(context, tsi);
+
+ /* any socket with events to service? */
+ for (n = 0; n < (int)pt->fds_count; n++) {
+ if (!pt->fds[n].revents)
+ continue;
+
+ m = lws_service_fd_tsi(context, &pt->fds[n], tsi);
+ if (m < 0)
+ return -1;
+ /* if something closed, retry this slot */
+ if (m)
+ n--;
+ }
+
+ lws_service_do_ripe_rxflow(pt);
+
+ return 0;
+ }
+
+
LWS_EXTERN int
_lws_plat_service_tsi(struct lws_context *context, int timeout_ms, int tsi)
{
--- /dev/null
- Version: 3.2.0
+Name: libwebsockets
+Summary: WebSocket Library
++Version: 3.2.3
+Release: 1
+Group: System/Libraries
+License: LGPLv2 with exceptions
+URL: https://github.com/warmcat/libwebsockets
+Source0: %{name}-%{version}.tar.gz
+Requires(post): /sbin/ldconfig
+Requires(postun): /sbin/ldconfig
+BuildRequires: zlib-devel
+BuildRequires: pkgconfig(openssl1.1)
+BuildRequires: openssl1.1
+BuildRequires: cmake
+
+%define _optdeveldir /opt/usr/devel/usr/
+
+%description
+C Websockets Server Library
+
+%package devel
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Development files needed for building websocket clients and servers
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+
+%cmake -DLWS_WITH_SSL=On \
+ -DLWS_WITHOUT_TESTAPPS=ON \
+ -DLWS_WITH_SERVER_STATUS=ON \
+ -DLWS_IPV6=ON \
+ -DLWS_WITH_SO_BINDTODEVICE=ON \
+ -DLWS_WITH_HTTP2=OFF\
+ .
+
+make %{?jobs:-j%jobs}
+
+%install
+rm -rf %{buildroot}
+
+%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%manifest %{name}.manifest
+%defattr(-,root,root,-)
+%{_libdir}/libwebsockets*.so.*
+%license LICENSE
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/libwebsockets.h
+%{_includedir}/lws-plugin-ssh.h
+%{_includedir}/lws_config.h
+%{_includedir}/libwebsockets/*
+%{_libdir}/libwebsockets.so
+%{_libdir}/pkgconfig/*
+%{_libdir}/cmake/*