diff options
-rwxr-xr-x | astmm.c | 1 | ||||
-rwxr-xr-x | include/asterisk/strings.h | 4 | ||||
-rwxr-xr-x | utils.c | 4 |
3 files changed, 4 insertions, 5 deletions
@@ -13,7 +13,6 @@ #ifdef __AST_DEBUG_MALLOC -#include <malloc.h> #include <stdio.h> #include <string.h> #include <time.h> diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index 37a5faccd..e0e5148a3 100755 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -214,7 +214,7 @@ struct ast_realloca { 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 @@ char *strndup(const char *, size_t); 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 @@ -658,7 +658,7 @@ size_t strnlen(const char *s, size_t n) } #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 @@ char *strndup(const char *s, size_t n) } #endif -#ifndef HAVE_VASPRINTF +#if !defined(HAVE_VASPRINTF) && !defined(__AST_DEBUG_MALLOC) int vasprintf(char **strp, const char *fmt, va_list ap) { int size; |