mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08: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…
x
Reference in New Issue
Block a user