mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-07-07 21:38:50 +00:00
Added MEM_LIBC_MALLOC option as workaround for failing mem_malloc().
This commit is contained in:
parent
a91374a916
commit
11f2e8d1a6
|
@ -47,6 +47,9 @@
|
||||||
|
|
||||||
#include "lwip/stats.h"
|
#include "lwip/stats.h"
|
||||||
|
|
||||||
|
#if (MEM_LIBC_MALLOC == 0)
|
||||||
|
/* lwIP replacement for your libc malloc() */
|
||||||
|
|
||||||
struct mem {
|
struct mem {
|
||||||
mem_size_t next, prev;
|
mem_size_t next, prev;
|
||||||
#if MEM_ALIGNMENT == 1
|
#if MEM_ALIGNMENT == 1
|
||||||
|
@ -407,3 +410,5 @@ mem_malloc(mem_size_t size)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#endif /* MEM_LIBC_MALLOC == 0 */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user