From f5f5231d2903ec07b5ad8cc4f7f9eccf8e936c50 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Mon, 4 Apr 2022 22:18:15 +0200 Subject: [PATCH] ITS#9841 fix librewrite declaration of calloc --- libraries/librewrite/rewrite-int.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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. */ -- 2.47.3