From 43fdb1a644bc2de940ced4692ef2cf059d3f28cb Mon Sep 17 00:00:00 2001 From: vjalle Date: Fri, 21 Feb 2025 07:49:30 +0100 Subject: [PATCH] makefsdata works even when dynamic headers and SSI are disabled --- src/apps/http/makefsdata/makefsdata.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/apps/http/makefsdata/makefsdata.c b/src/apps/http/makefsdata/makefsdata.c index 62d77a328..2240dcfd7 100644 --- a/src/apps/http/makefsdata/makefsdata.c +++ b/src/apps/http/makefsdata/makefsdata.c @@ -97,10 +97,14 @@ static int deflate_level; /* default compression level, can be changed via comma #define LWIP_PLATFORM_ASSERT(x) do {printf("Assertion \"%s\" failed at line %d in %s\n", \ x, __LINE__, __FILE__); fflush(NULL); abort();} while(0) +#include "lwip/init.h" + /* define this to get the header variables we use to build HTTP headers */ +#undef LWIP_HTTPD_DYNAMIC_HEADERS +#undef LWIP_HTTPD_SSI #define LWIP_HTTPD_DYNAMIC_HEADERS 1 #define LWIP_HTTPD_SSI 1 -#include "lwip/init.h" + #include "../httpd_structs.h" #include "lwip/apps/fs.h"