Add altcp to Filelists.mk

Some compile fixes in altcp_tcp.c and httpd.c
This commit is contained in:
Dirk Ziegelmeier 2017-03-22 22:57:50 +01:00
parent f7d215043c
commit 060a47f88a
3 changed files with 7 additions and 4 deletions

View File

@ -42,6 +42,8 @@ COREFILES=$(LWIPDIR)/core/init.c \
$(LWIPDIR)/core/raw.c \ $(LWIPDIR)/core/raw.c \
$(LWIPDIR)/core/stats.c \ $(LWIPDIR)/core/stats.c \
$(LWIPDIR)/core/sys.c \ $(LWIPDIR)/core/sys.c \
$(LWIPDIR)/core/altcp.c \
$(LWIPDIR)/core/altcp_tcp.c \
$(LWIPDIR)/core/tcp.c \ $(LWIPDIR)/core/tcp.c \
$(LWIPDIR)/core/tcp_in.c \ $(LWIPDIR)/core/tcp_in.c \
$(LWIPDIR)/core/tcp_out.c \ $(LWIPDIR)/core/tcp_out.c \

View File

@ -1203,7 +1203,7 @@ http_send_data_ssi(struct altcp_pcb *pcb, struct http_state *hs)
* have to split the insert string between two tcp_write operations. */ * have to split the insert string between two tcp_write operations. */
/* How much data could we send? */ /* How much data could we send? */
len = tcp_sndbuf(pcb); len = altcp_sndbuf(pcb);
/* Do we have remaining data to send before parsing more? */ /* Do we have remaining data to send before parsing more? */
if(ssi->parsed > hs->file) { if(ssi->parsed > hs->file) {
@ -1217,7 +1217,7 @@ http_send_data_ssi(struct altcp_pcb *pcb, struct http_state *hs)
} }
/* If the send buffer is full, return now. */ /* If the send buffer is full, return now. */
if(tcp_sndbuf(pcb) == 0) { if(altcp_sndbuf(pcb) == 0) {
return data_to_send; return data_to_send;
} }
} }

View File

@ -46,6 +46,7 @@
#if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */ #if LWIP_ALTCP /* don't build if not configured for use in lwipopts.h */
#include "lwip/altcp.h" #include "lwip/altcp.h"
#include "lwip/altcp_tcp.h"
#include "lwip/priv/altcp_priv.h" #include "lwip/priv/altcp_priv.h"
#include "lwip/tcp.h" #include "lwip/tcp.h"
#include "lwip/mem.h" #include "lwip/mem.h"
@ -343,7 +344,7 @@ altcp_tcp_dealloc(struct altcp_pcb *conn)
/* no private state to clean up */ /* no private state to clean up */
} }
err_t static err_t
altcp_tcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port) altcp_tcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u16_t *port)
{ {
if (conn) { if (conn) {
@ -354,7 +355,7 @@ altcp_tcp_get_tcp_addrinfo(struct altcp_pcb *conn, int local, ip_addr_t *addr, u
} }
#ifdef LWIP_DEBUG #ifdef LWIP_DEBUG
enum tcp_state static enum tcp_state
altcp_tcp_dbg_get_tcp_state(struct altcp_pcb *conn) altcp_tcp_dbg_get_tcp_state(struct altcp_pcb *conn)
{ {
if (conn) { if (conn) {