Fix netutils configuration issues: CONFIG_NETUTILS_HTTPD_SENDFILE was missing from Kconfig; CONFIG_NET_HAVE_SOLINGER should be CONFIG_NET_SOLINGER; Type of CONFIG_NET_HTTPD_MAXPATH was wrong in Kconfig file. From Max

This commit is contained in:
Gregory Nutt
2014-07-11 12:30:23 -06:00
parent de31f2cce8
commit 767f1b2993
6 changed files with 41 additions and 30 deletions

View File

@@ -81,7 +81,7 @@
void netlib_server(uint16_t portno, pthread_startroutine_t handler, int stacksize)
{
struct sockaddr_in myaddr;
#ifdef CONFIG_NET_HAVE_SOLINGER
#ifdef CONFIG_NET_SOLINGER
struct linger ling;
#endif
pthread_t child;
@@ -119,7 +119,7 @@ void netlib_server(uint16_t portno, pthread_startroutine_t handler, int stacksiz
* closed.
*/
#ifdef CONFIG_NET_HAVE_SOLINGER
#ifdef CONFIG_NET_SOLINGER
ling.l_onoff = 1;
ling.l_linger = 30; /* timeout is seconds */