ITS#6005 librewrite must use the same mem allocators as slapd

This commit is contained in:
Howard Chu 2009-03-07 23:21:26 +00:00
parent 0d745b2665
commit 5d74bea520

View file

@ -39,6 +39,13 @@
#include <rewrite.h>
#define malloc(x) ber_memalloc(x)
#define calloc(x,y) ber_memcalloc(x,y)
#define realloc(x,y) ber_memrealloc(x,y)
#define free(x) ber_memfree(x)
#undef strdup
#define strdup(x) ber_strdup(x)
/* Uncomment to use ldap pvt threads */
#define USE_REWRITE_LDAP_PVT_THREADS
#include <ldap_pvt_thread.h>