From 2e067d1700fe74fd46b5a3fd7582fd6cd9c23270 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Thu, 12 Sep 2019 14:44:27 +0100 Subject: [PATCH] Refuse to compile with lws 3.2.0. --- src/mosquitto_broker_internal.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mosquitto_broker_internal.h b/src/mosquitto_broker_internal.h index 16361d3e..25d4a5b0 100644 --- a/src/mosquitto_broker_internal.h +++ b/src/mosquitto_broker_internal.h @@ -37,6 +37,9 @@ Contributors: # define libwebsocket_protocols lws_protocols # define libwebsocket_callback_reasons lws_callback_reasons # define libwebsocket lws +# if LWS_LIBRARY_VERSION_NUMBER == 3002000 +# error "libwebsockets 3.2.0 is not compatible with Mosquitto. <3.1.0, or >=3.2.1 will work fine" +# endif # else # define lws_pollfd pollfd # define lws_service_fd(A, B) libwebsocket_service_fd((A), (B))