From: Shuanglei Tao Date: Sat, 14 Sep 2019 03:30:39 +0000 (+0800) Subject: src: refuse to compile with lws 3.2.0 X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=46064ee86e04cfabf05fa5723777cbbe3adb7480;p=ttyd.git src: refuse to compile with lws 3.2.0 --- diff --git a/src/server.c b/src/server.c index cea5774..7afa467 100644 --- a/src/server.c +++ b/src/server.c @@ -18,6 +18,10 @@ #define TTYD_VERSION "unknown" #endif +#if LWS_LIBRARY_VERSION_NUMBER == 3002000 +#error "libwebsockets 3.2.0 is not compatible with ttyd." +#endif + volatile bool force_exit = false; struct lws_context *context; struct tty_server *server;