hard-link bencode.[ch] from kamailio source for now

git.mgm/mediaproxy-ng/2.2
Richard Fuchs 14 years ago
parent be4a6c7d58
commit c5be7346a6

@ -4,9 +4,17 @@
#include <sys/uio.h> #include <sys/uio.h>
#include <string.h> #include <string.h>
#ifndef BENCODE_MALLOC #if defined(PKG_MALLOC) || defined(pkg_malloc)
#define BENCODE_MALLOC malloc # include "../../mem/mem.h"
#define BENCODE_FREE free # 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 #endif
struct bencode_buffer; struct bencode_buffer;

Loading…
Cancel
Save