diff --git a/apps/httpserver/httpserver-netconn.c b/apps/httpserver/httpserver-netconn.c index 7e9b357..8cd74d3 100644 --- a/apps/httpserver/httpserver-netconn.c +++ b/apps/httpserver/httpserver-netconn.c @@ -1,3 +1,9 @@ +#include "lwip/opt.h" +#include "lwip/arch.h" +#include "lwip/api.h" + +#if LWIP_NETCONN + const static char http_html_hdr[] = "HTTP/1.1 200 OK\r\nContent-type: text/html\r\n\r\n"; const static char http_index_html[] = "Congrats!

Welcome to our lwIP HTTP server!

This is a small test page."; @@ -60,3 +66,5 @@ int http_server() { } return 0; } + +#endif /* LWIP_NETCONN*/