webserver: Help users to easily identify missing configurations

Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Alan Carvalho de Assis 2022-10-04 12:48:54 -03:00 committed by Petro Karashchenko
parent 98a9d2c749
commit ed78d25934
2 changed files with 8 additions and 0 deletions

View File

@ -83,6 +83,10 @@
* Pre-processor Definitions
****************************************************************************/
#ifndef CONFIG_NETUTILS_WEBSERVER
# error "CONFIG_NETUTILS_WEBSERVER is required to get WebServer working"
#endif
/****************************************************************************
* Private Data
****************************************************************************/

View File

@ -72,6 +72,10 @@
* MSS value. Here we arbitrarily select the minimum MSS for that case.
*/
#ifndef MIN_TCP_MSS
# error "You need to enable TCP/IP (i.e. CONFIG_NET_TCP) to use HTTPD"
#endif
#define HTTPD_IOBUFFER_SIZE (3*MIN_TCP_MSS)
/* This is the maximum size of a file path */