From 46064ee86e04cfabf05fa5723777cbbe3adb7480 Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sat, 14 Sep 2019 11:30:39 +0800 Subject: [PATCH] src: refuse to compile with lws 3.2.0 --- src/server.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.43.4