From 70c12e4afaa39070898fdac8797398862e28d63c Mon Sep 17 00:00:00 2001 From: Shuanglei Tao Date: Sun, 14 Jun 2020 00:33:35 +0800 Subject: [PATCH] http: fix build with lws 1.7 --- src/http.c | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.43.4