patch-libraries_librewrite_rewrite-int_h 578 B

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