make kamailio specific defines compile-specifig

pull/1/head
Richard Fuchs 13 years ago
parent bf25b27552
commit 5be35fde34

@ -6,7 +6,6 @@
#include <string.h>
#include "bencode.h"
#include "../../mem/mem.h"
/* set to 0 for alloc debugging, e.g. through valgrind */
#define BENCODE_MIN_BUFFER_PIECE_LEN 512

@ -3,11 +3,18 @@
#include <sys/uio.h>
#include <string.h>
#include "../../mem/mem.h"
#ifndef BENCODE_MALLOC
#define BENCODE_MALLOC pkg_malloc
#define BENCODE_FREE pkg_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;

Loading…
Cancel
Save