]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#9841 fix librewrite declaration of calloc
authorHelmut Grohne <helmut@subdivi.de>
Mon, 4 Apr 2022 20:18:15 +0000 (22:18 +0200)
committerQuanah Gibson-Mount <quanah@openldap.org>
Thu, 12 May 2022 15:42:52 +0000 (15:42 +0000)
libraries/librewrite/rewrite-int.h

index 0deb72bffad0a86ff3d29cf254fb1a86379adf4c..441db513a0648c0242cdc3b525fdf5639f7475bb 100644 (file)
 
 #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)
 #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.
  */