From c5be7346a6490df18d8c05d473b6004f48fe4f1c Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Wed, 23 Jan 2013 08:12:16 -0500 Subject: [PATCH] hard-link bencode.[ch] from kamailio source for now --- daemon/bencode.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/daemon/bencode.h b/daemon/bencode.h index f36eb3d4d..5814663f4 100644 --- a/daemon/bencode.h +++ b/daemon/bencode.h @@ -4,9 +4,17 @@ #include #include -#ifndef BENCODE_MALLOC -#define BENCODE_MALLOC malloc -#define BENCODE_FREE free +#if defined(PKG_MALLOC) || defined(pkg_malloc) +# include "../../mem/mem.h" +# ifndef BENCODE_MALLOC +# define BENCODE_MALLOC pkg_malloc +# define BENCODE_FREE pkg_free +# endif +#else +# ifndef BENCODE_MALLOC +# define BENCODE_MALLOC malloc +# define BENCODE_FREE free +# endif #endif struct bencode_buffer;