Index: astmm.c =================================================================== RCS file: /usr/cvsroot/asterisk/astmm.c,v retrieving revision 1.19 diff -u -r1.19 astmm.c --- astmm.c 23 Aug 2005 15:08:55 -0000 1.19 +++ astmm.c 14 Sep 2005 02:22:15 -0000 @@ -13,7 +13,6 @@ #ifdef __AST_DEBUG_MALLOC -#include #include #include #include Index: utils.c =================================================================== RCS file: /usr/cvsroot/asterisk/utils.c,v retrieving revision 1.67 diff -u -r1.67 utils.c --- utils.c 2 Sep 2005 11:39:24 -0000 1.67 +++ utils.c 14 Sep 2005 02:22:16 -0000 @@ -658,7 +658,7 @@ } #endif -#ifndef HAVE_STRNDUP +#if !defined(HAVE_STRNDUP) && !defined(__AST_DEBUG_MALLOC) char *strndup(const char *s, size_t n) { size_t len = strnlen(s, n); @@ -672,7 +672,7 @@ } #endif -#ifndef HAVE_VASPRINTF +#if !defined(HAVE_VASPRINTF) && !defined(__AST_DEBUG_MALLOC) int vasprintf(char **strp, const char *fmt, va_list ap) { int size; Index: include/asterisk/strings.h =================================================================== RCS file: /usr/cvsroot/asterisk/include/asterisk/strings.h,v retrieving revision 1.9 diff -u -r1.9 strings.h --- include/asterisk/strings.h 8 Sep 2005 02:19:02 -0000 1.9 +++ include/asterisk/strings.h 14 Sep 2005 02:22:19 -0000 @@ -214,7 +214,7 @@ char *strcasestr(const char *, const char *); #endif -#ifndef HAVE_STRNDUP +#if !defined(HAVE_STRNDUP) && !defined(__AST_DEBUG_MALLOC) char *strndup(const char *, size_t); #endif @@ -222,7 +222,7 @@ size_t strnlen(const char *, size_t); #endif -#ifndef HAVE_VASPRINTF +#if !defined(HAVE_VASPRINTF) && !defined(__AST_DEBUG_MALLOC) int vasprintf(char **strp, const char *fmt, va_list ap); #endif