webserver: Help users to easily identify missing configurations
Co-authored-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
parent
98a9d2c749
commit
ed78d25934
@ -83,6 +83,10 @@
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_NETUTILS_WEBSERVER
|
||||
# error "CONFIG_NETUTILS_WEBSERVER is required to get WebServer working"
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user