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;