RPL border router: re-enable Web-server-free compilation
This commit is contained in:
parent
76d549fc00
commit
b339c42a09
|
@ -37,14 +37,11 @@
|
||||||
* Joakim Eriksson <joakime@sics.se>
|
* Joakim Eriksson <joakime@sics.se>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include "contiki.h"
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "contiki-net.h"
|
#include "contiki-net.h"
|
||||||
|
|
||||||
#if UIP_CONF_TCP == 0
|
#include <stdio.h>
|
||||||
#error HTTP server needs TCP enabled
|
#include <string.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "httpd-simple.h"
|
#include "httpd-simple.h"
|
||||||
#define webserver_log_file(...)
|
#define webserver_log_file(...)
|
||||||
|
|
|
@ -310,7 +310,6 @@ PT_THREAD(generate_routes(struct httpd_state *s))
|
||||||
|
|
||||||
PSOCK_END(&s->sout);
|
PSOCK_END(&s->sout);
|
||||||
}
|
}
|
||||||
#if BORDER_ROUTER_CONF_WEBSERVER
|
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
PROCESS(webserver_nogui_process, "Web server");
|
PROCESS(webserver_nogui_process, "Web server");
|
||||||
PROCESS_THREAD(webserver_nogui_process, ev, data)
|
PROCESS_THREAD(webserver_nogui_process, ev, data)
|
||||||
|
@ -332,4 +331,4 @@ httpd_simple_get_script(const char *name)
|
||||||
{
|
{
|
||||||
return generate_routes;
|
return generate_routes;
|
||||||
}
|
}
|
||||||
#endif /* BORDER_ROUTER_CONF_WEBSERVER */
|
/*---------------------------------------------------------------------------*/
|
||||||
|
|
|
@ -44,7 +44,9 @@
|
||||||
#define WEBSERVER_CONF_CFS_CONNS 2
|
#define WEBSERVER_CONF_CFS_CONNS 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef BORDER_ROUTER_CONF_WEBSERVER
|
||||||
#define BORDER_ROUTER_CONF_WEBSERVER 1
|
#define BORDER_ROUTER_CONF_WEBSERVER 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#if BORDER_ROUTER_CONF_WEBSERVER
|
#if BORDER_ROUTER_CONF_WEBSERVER
|
||||||
#define UIP_CONF_TCP 1
|
#define UIP_CONF_TCP 1
|
||||||
|
|
Loading…
Reference in New Issue