Fixed compilation with LWIP_UDP/LWIP_TCP disabled

This commit is contained in:
goldsimon 2010-03-26 16:10:32 +00:00
parent 581b363d79
commit 57c1f7a16d
3 changed files with 14 additions and 0 deletions

View File

@ -87,6 +87,8 @@
#include <string.h>
#include <stdlib.h>
#if LWIP_TCP
#ifndef HTTPD_DEBUG
#define HTTPD_DEBUG LWIP_DBG_OFF
#endif
@ -1989,3 +1991,5 @@ http_set_cgi_handlers(const tCGI *cgis, int num_handlers)
g_iNumCGIs = num_handlers;
}
#endif /* LWIP_HTTPD_CGI */
#endif /* LWIP_TCP */

View File

@ -39,10 +39,14 @@
#include "lwip/timers.h"
#include "lwip/udp.h"
#include "lwip/dns.h"
#include "lwip/ip_addr.h"
#include "lwip/pbuf.h"
#include <string.h>
#include <time.h>
#if LWIP_UDP
/** This is simple "SNTP" client for socket or raw API.
* It is a minimal implementation of SNTPv4 as specified in RFC 4330.
*
@ -694,3 +698,5 @@ sntp_init(void)
}
#endif /* SNTP_SOCKET */
#endif /* LWIP_UDP */

View File

@ -45,6 +45,8 @@
#include "lwip/stats.h"
#include "lwip/tcp.h"
#if LWIP_TCP
static struct tcp_pcb *echo_pcb;
enum echo_states
@ -354,3 +356,5 @@ echo_close(struct tcp_pcb *tpcb, struct echo_state *es)
}
tcp_close(tpcb);
}
#endif /* LWIP_TCP */