Include <malloc.h> for struct mallinfo.

GCC doesn't seem to care, but clang does.

Change-Id: I9884820339a9e6f142862928c357f1a538184ae0
This commit is contained in:
Elliott Hughes 2015-01-30 20:33:31 -08:00
parent 09c3382433
commit cb0e70389e
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#define LIBC_BIONIC_JEMALLOC_H_
#include <jemalloc/jemalloc.h>
#include <malloc.h> // For struct mallinfo.
// Need to wrap memalign since je_memalign fails on non-power of 2 alignments.
#define je_memalign je_memalign_round_up_boundary