diff --git a/CHANGELOG b/CHANGELOG index 5e0cbc85..07b18d97 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -79,6 +79,9 @@ HISTORY ++ Bugfixes: + 2009-04-09 Kieran Mansley (patch from Luca Ceresoli ) + * init.c, opt.h: Patch#6774 TCP_QUEUE_OOSEQ breaks compilation when + LWIP_TCP==0 2009-04-09 Kieran Mansley (patch from Roy Lee ) * tcp.h: Patch#6802 Add do-while-clauses to those function like diff --git a/src/core/init.c b/src/core/init.c index ea2d3d22..ae7698b2 100644 --- a/src/core/init.c +++ b/src/core/init.c @@ -158,6 +158,9 @@ #if (PBUF_POOL_BUFSIZE <= MEM_ALIGNMENT) #error "PBUF_POOL_BUFSIZE must be grater than MEM_ALIGNMENT or the offset may take the full first pbuf" #endif +#if (TCP_QUEUE_OOSEQ && !LWIP_TCP) + #error "TCP_QUEUE_OOSEQ requires LWIP_TCP" +#endif /* Compile-time checks for deprecated options. diff --git a/src/include/lwip/opt.h b/src/include/lwip/opt.h index 31aba4b2..08f8bb8d 100644 --- a/src/include/lwip/opt.h +++ b/src/include/lwip/opt.h @@ -707,7 +707,7 @@ * Define to 0 if your device is low on memory. */ #ifndef TCP_QUEUE_OOSEQ -#define TCP_QUEUE_OOSEQ 1 +#define TCP_QUEUE_OOSEQ (LWIP_TCP) #endif /**