summaryrefslogtreecommitdiff
path: root/package/openldap/patches/patch-libraries_librewrite_rewrite-int_h
blob: a80083bc2a3c693a47ac126a2d7aeadf3d74e22a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- openldap-2.4.36.orig/libraries/librewrite/rewrite-int.h	2013-08-16 20:12:59.000000000 +0200
+++ openldap-2.4.36/libraries/librewrite/rewrite-int.h	2013-11-01 14:30:43.000000000 +0100
@@ -40,12 +40,18 @@
 
 #include <rewrite.h>
 
+/*
+#undef malloc
 #define malloc(x)	ber_memalloc(x)
+#undef calloc
 #define calloc(x,y)	ber_memcalloc(x,y)
+#undef realloc
 #define realloc(x,y)	ber_memrealloc(x,y)
+#undef free
 #define free(x)	ber_memfree(x)
 #undef strdup
 #define	strdup(x)	ber_strdup(x)
+*/
 
 /* Uncomment to use ldap pvt threads */
 #define USE_REWRITE_LDAP_PVT_THREADS