From 6aab0332e8cbcd5f5751e650f9e89fd8a6fee9c8 Mon Sep 17 00:00:00 2001 From: fbernon Date: Wed, 12 Sep 2007 09:02:26 +0000 Subject: [PATCH] Add missing #if/#endif to fix build problems --- src/include/lwip/memp_std.h | 4 ++++ src/include/lwip/tcpip.h | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/include/lwip/memp_std.h b/src/include/lwip/memp_std.h index c074103a..ee5356f8 100644 --- a/src/include/lwip/memp_std.h +++ b/src/include/lwip/memp_std.h @@ -43,11 +43,15 @@ LWIP_MEMPOOL(TCP_PCB_LISTEN, MEMP_NUM_TCP_PCB_LISTEN, sizeof(struct tcp_pcb_lis LWIP_MEMPOOL(TCP_SEG, MEMP_NUM_TCP_SEG, sizeof(struct tcp_seg), "TCP_SEG") #endif /* LWIP_TCP */ +#if LWIP_NETCONN LWIP_MEMPOOL(NETBUF, MEMP_NUM_NETBUF, sizeof(struct netbuf), "NETBUF") LWIP_MEMPOOL(NETCONN, MEMP_NUM_NETCONN, sizeof(struct netconn), "NETCONN") +#endif /* LWIP_NETCONN */ +#if NO_SYS==0 LWIP_MEMPOOL(TCPIP_MSG_API, MEMP_NUM_TCPIP_MSG_API, sizeof(struct tcpip_msg), "TCPIP_MSG_API") LWIP_MEMPOOL(TCPIP_MSG_INPKT,MEMP_NUM_TCPIP_MSG_INPKT, sizeof(struct tcpip_msg), "TCPIP_MSG_INPKT") +#endif /* NO_SYS==0 */ #if ARP_QUEUEING LWIP_MEMPOOL(ARP_QUEUE, MEMP_NUM_ARP_QUEUE, sizeof(struct etharp_q_entry), "ARP_QUEUE") diff --git a/src/include/lwip/tcpip.h b/src/include/lwip/tcpip.h index f395c38c..ca6e2b58 100644 --- a/src/include/lwip/tcpip.h +++ b/src/include/lwip/tcpip.h @@ -32,6 +32,10 @@ #ifndef __LWIP_TCPIP_H__ #define __LWIP_TCPIP_H__ +#include "lwip/opt.h" + +#if !NO_SYS /* don't build if not configured for use in lwipopts.h */ + #include "lwip/api_msg.h" #include "lwip/netifapi.h" #include "lwip/pbuf.h" @@ -115,4 +119,6 @@ struct tcpip_msg { } #endif +#endif /* !NO_SYS */ + #endif /* __LWIP_TCPIP_H__ */