From: Helmut Grohne Date: Mon, 4 Apr 2022 20:18:15 +0000 (+0200) Subject: ITS#9841 fix librewrite declaration of calloc X-Git-Tag: OPENLDAP_REL_ENG_2_5_13~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c1d1f3f3ccb097308ea7dcaf9d170704658be3f;p=thirdparty%2Fopenldap.git ITS#9841 fix librewrite declaration of calloc --- diff --git a/libraries/librewrite/rewrite-int.h b/libraries/librewrite/rewrite-int.h index 0deb72bffa..441db513a0 100644 --- a/libraries/librewrite/rewrite-int.h +++ b/libraries/librewrite/rewrite-int.h @@ -40,6 +40,11 @@ #include +#ifndef NO_THREADS +#define USE_REWRITE_LDAP_PVT_THREADS +#include +#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 -#endif - /* * For details, see RATIONALE. */