]> prime8.dev >> repos - ttyd.git/commitdiff
http: fix build with lws 1.7
authorShuanglei Tao <tsl0922@gmail.com>
Sat, 13 Jun 2020 16:33:35 +0000 (00:33 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sat, 13 Jun 2020 16:33:35 +0000 (00:33 +0800)
src/http.c

index ae62668de252a84bc1f5c27133b006ca74bc2e83..3297c5c9d6bc47d0efef6669d683fb2c2d8ba857 100644 (file)
@@ -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;