mirror of
https://github.com/eclipse/mosquitto.git
synced 2025-05-09 01:01:11 +08:00
Give compile time warning for libwebsockets
If it is compiled without external poll support. Closes #2060. Thanks to Yannic Schröder.
This commit is contained in:
parent
7fe638786d
commit
1b24f625ea
@ -5,6 +5,8 @@ Broker:
|
||||
because plugins should never be allocating their own instance of this
|
||||
struct, and currently none of the struct members are used for anything, so a
|
||||
plugin should not be accessing them.
|
||||
- Give compile time warning if libwebsockets compiled without external poll
|
||||
support. Closes #2060.
|
||||
|
||||
Clients:
|
||||
- Fix possible loss of data in `mosquitto_pub -l` when sending multiple long
|
||||
|
@ -25,6 +25,9 @@ Contributors:
|
||||
|
||||
#ifdef WITH_WEBSOCKETS
|
||||
# include <libwebsockets.h>
|
||||
# if LWS_LIBRARY_VERSION_NUMBER >= 3002000 && !defined(LWS_WITH_EXTERNAL_POLL)
|
||||
# warning "libwebsockets is not compiled with LWS_WITH_EXTERNAL_POLL support. Websocket performance will be unusable."
|
||||
# endif
|
||||
#endif
|
||||
|
||||
#include "mosquitto_internal.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user