aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-14 02:30:33 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-09-14 02:30:33 +0000
commit96c9ed94885b0b5c7266d1d1a39f812879ab1548 (patch)
tree56f6a1edff87d778fc61a175f358aa31189744dd /include
parent236826fc1f63b1cd0d484c41e929ac44c2f25ac6 (diff)
don't double define our own string functions on platforms that don't have them (issue #5169)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6587 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-xinclude/asterisk/strings.h4
1 files changed, 2 insertions, 2 deletions
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