lwip: fix building without TCP_QUEUE_OOSEQ

This commit is contained in:
Our Air Quality 2017-10-01 21:26:15 +11:00
parent 6080bb6ef2
commit 70aa7a90a5
2 changed files with 5 additions and 1 deletions

View file

@ -164,6 +164,8 @@ void pp_recycle_rx_pbuf(struct pbuf *p)
#define COPY_PP_RX_PBUFS 0 #define COPY_PP_RX_PBUFS 0
#if TCP_QUEUE_OOSEQ
/* Return the number of ooseq bytes that can be retained given the current /* Return the number of ooseq bytes that can be retained given the current
* size 'n'. */ * size 'n'. */
size_t ooseq_bytes_limit(struct tcp_pcb *pcb) size_t ooseq_bytes_limit(struct tcp_pcb *pcb)
@ -220,6 +222,8 @@ size_t ooseq_pbufs_limit(struct tcp_pcb *pcb)
return target; return target;
} }
#endif /* TCP_QUEUE_OOSEQ */
/** /**
* This function should be called when a packet is ready to be read * This function should be called when a packet is ready to be read
* from the interface. It uses the function low_level_input() that * from the interface. It uses the function low_level_input() that

@ -1 +1 @@
Subproject commit 16c0f928b5d6f557e845d96782cb3fa4e8e549fd Subproject commit 74676d46f0bc5ed82515f8e247008b7c45ec6cf6