mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
ITS#9841 fix librewrite declaration of calloc
This commit is contained in:
parent
87df6c1991
commit
f5f5231d29
1 changed files with 5 additions and 5 deletions
|
|
@ -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.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue