summaryrefslogtreecommitdiff
path: root/package/openldap/patches/patch-libraries_librewrite_rewrite-int_h
diff options
context:
space:
mode:
authorWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-11-01 15:27:03 +0100
committerWaldemar Brodkorb <mail@waldemar-brodkorb.de>2013-11-01 15:27:03 +0100
commit4c7787c1528218d1d562e117b84215788d60d372 (patch)
tree6ef35538248cda10ed29fb71641e4f082ce4f76e /package/openldap/patches/patch-libraries_librewrite_rewrite-int_h
parent0e19731bdf514eabf6a31ece3d4f59c84c11f3a2 (diff)
parentcb473cf39ad075aba5cc0a3847f1ae4afbdc0855 (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/openldap/patches/patch-libraries_librewrite_rewrite-int_h')
-rw-r--r--package/openldap/patches/patch-libraries_librewrite_rewrite-int_h21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/openldap/patches/patch-libraries_librewrite_rewrite-int_h b/package/openldap/patches/patch-libraries_librewrite_rewrite-int_h
new file mode 100644
index 000000000..a80083bc2
--- /dev/null
+++ b/package/openldap/patches/patch-libraries_librewrite_rewrite-int_h
@@ -0,0 +1,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