summaryrefslogtreecommitdiff
path: root/accel-pppd
diff options
context:
space:
mode:
authorGuillaume Nault <g.nault@alphalink.fr>2018-10-24 16:36:14 +0200
committerDmitry Kozlov <xeb@mail.ru>2018-10-26 06:34:34 +0300
commite2014029851b6f720b2d55be3d1680c0e72e4641 (patch)
treecc48f36d9b46f069940cee7a0518ddad392942e1 /accel-pppd
parent26d64e2cc9113f11aead582ed6048c52dc5d9055 (diff)
downloadaccel-ppp-e2014029851b6f720b2d55be3d1680c0e72e4641.tar.gz
accel-ppp-e2014029851b6f720b2d55be3d1680c0e72e4641.zip
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 <g.nault@alphalink.fr>
Diffstat (limited to 'accel-pppd')
-rw-r--r--accel-pppd/triton/mempool.h2
1 files changed, 2 insertions, 0 deletions
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__)