[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [PATCH] Fix compilation with MEM_USE_POOLS = 0
From: |
Samuel Thibault |
Subject: |
[lwip-devel] [PATCH] Fix compilation with MEM_USE_POOLS = 0 |
Date: |
Wed, 16 Apr 2008 11:24:25 +0100 |
User-agent: |
Mutt/1.5.12-2006-07-14 |
Hello,
The patch below fixes CVS' compilation with MEM_USE_POOLS set to 0.
Samuel
Index: src/api/tcpip.c
===================================================================
RCS file: /sources/lwip/lwip/src/api/tcpip.c,v
retrieving revision 1.72
diff -u -p -r1.72 tcpip.c
--- src/api/tcpip.c 28 Mar 2008 07:56:47 -0000 1.72
+++ src/api/tcpip.c 16 Apr 2008 10:21:54 -0000
@@ -550,10 +550,12 @@ pbuf_free_callback(struct pbuf *p)
* @param m the heap memory to free
* @return ERR_OK if callback could be enqueued, an err_t if not
*/
+#if MEM_USE_POOLS
err_t
mem_free_callback(void *m)
{
return tcpip_callback_with_block(mem_free, m, 0);
}
+#endif /* MEM_USE_POOLS */
#endif /* !NO_SYS */
- [lwip-devel] [PATCH] Fix compilation with MEM_USE_POOLS = 0,
Samuel Thibault <=