]> prime8.dev >> repos - ttyd.git/commitdiff
src: refuse to compile with lws 3.2.0
authorShuanglei Tao <tsl0922@gmail.com>
Sat, 14 Sep 2019 03:30:39 +0000 (11:30 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sat, 14 Sep 2019 03:30:39 +0000 (11:30 +0800)
src/server.c

index cea5774364a1add0a9653eb61f68028f71fc41a0..7afa467aabdedc1f19bcf19f74799f8d1038b86b 100644 (file)
 #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;