ITS#9841 fix librewrite declaration of calloc

This commit is contained in:
Helmut Grohne 2022-04-04 22:18:15 +02:00 committed by Howard Chu
parent 87df6c1991
commit f5f5231d29

View file

@ -40,6 +40,11 @@
#include <rewrite.h>
#ifndef NO_THREADS
#define USE_REWRITE_LDAP_PVT_THREADS
#include <ldap_pvt_thread.h>
#endif
#define malloc(x) ber_memalloc(x)
#define calloc(x,y) ber_memcalloc(x,y)
#define realloc(x,y) ber_memrealloc(x,y)
@ -47,11 +52,6 @@
#undef strdup
#define strdup(x) ber_strdup(x)
#ifndef NO_THREADS
#define USE_REWRITE_LDAP_PVT_THREADS
#include <ldap_pvt_thread.h>
#endif
/*
* For details, see RATIONALE.
*/