From e2014029851b6f720b2d55be3d1680c0e72e4641 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 24 Oct 2018 16:36:14 +0200 Subject: triton: make mempool.h self-contained even when MEMDEBUG is defined If MEMDEBUG is defined, then we need to include "memdebug.h" to define 'md_free'. Signed-off-by: Guillaume Nault --- accel-pppd/triton/mempool.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/accel-pppd/triton/mempool.h b/accel-pppd/triton/mempool.h index 9b95af09..9ad2c370 100644 --- a/accel-pppd/triton/mempool.h +++ b/accel-pppd/triton/mempool.h @@ -15,6 +15,8 @@ mempool_t *mempool_create2(int size); struct mempool_stat_t mempool_get_stat(void); #ifdef MEMDEBUG +#include "memdebug.h" + void *md_mempool_alloc(mempool_t*, const char *fname, int line); #define mempool_alloc(pool) md_mempool_alloc(pool, __FILE__, __LINE__) #define mempool_free(ptr) md_free(ptr, __FILE__, __LINE__) -- cgit v1.2.3