Fix build regression for WITH_WEBSOCKETS=yes on non-Linux systems.

This commit is contained in:
Roger A. Light 2020-12-10 23:33:46 +00:00
parent 38b930776c
commit ecf6f9079a
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2.0.2 - 2020-12-10
==================
Broker:
- Fix build regression for WITH_WEBSOCKETS=yes on non-Linux systems.
2.0.1 - 2020-12-10 2.0.1 - 2020-12-10
================== ==================

View File

@ -212,7 +212,7 @@ int mux_poll__handle(struct mosquitto__listener_sock *listensock, int listensock
for(i=0; i<listensock_count; i++){ for(i=0; i<listensock_count; i++){
if(pollfds[i].revents & (POLLIN | POLLPRI)){ if(pollfds[i].revents & (POLLIN | POLLPRI)){
#ifdef WITH_WEBSOCKETS #ifdef WITH_WEBSOCKETS
if(listensock[i]->listener.ws_context){ if(listensock[i].listener->ws_context){
/* Nothing needs to happen here, because we always call lws_service in the loop. /* Nothing needs to happen here, because we always call lws_service in the loop.
* The important point is we've been woken up for this listener. */ * The important point is we've been woken up for this listener. */
}else }else