lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] [PATCH] Fix compilation with MEM_USE_POOLS = 0


From: Jonathan Larmour
Subject: Re: [lwip-devel] [PATCH] Fix compilation with MEM_USE_POOLS = 0
Date: Wed, 16 Apr 2008 15:17:54 +0100
User-agent: Thunderbird 1.5.0.12 (X11/20070530)

Samuel Thibault wrote:
> Hello,
> 
> The patch below fixes CVS' compilation with MEM_USE_POOLS set to 0.

Are you sure about this? I can't see what the failing would be (although
haven't tried it). What happened otherwise?

Jifl

> 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 */


-- 
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
 **  Visit us at ESC Silicon Valley <http://www.embedded.com/esc/sv>  **
 **  April 15-17 2008, Booth 3012, San Jose McEnery Convention Center **
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["Si fractum non sit, noli id reficere"]------       Opinions==mine




reply via email to

[Prev in Thread] Current Thread [Next in Thread]