From: Shuanglei Tao Date: Sat, 13 Jun 2020 16:33:35 +0000 (+0800) Subject: http: fix build with lws 1.7 X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=70c12e4afaa39070898fdac8797398862e28d63c;p=ttyd.git http: fix build with lws 1.7 --- diff --git a/src/http.c b/src/http.c index ae62668..3297c5c 100644 --- a/src/http.c +++ b/src/http.c @@ -7,6 +7,10 @@ #include "server.h" #include "utils.h" +#if LWS_LIBRARY_VERSION_MAJOR < 2 +#define HTTP_STATUS_FOUND 302 +#endif + enum { AUTH_OK, AUTH_FAIL, AUTH_ERROR }; static char *html_cache = NULL;