add the missing prototype for the included asprintf
authorRussell Bryant <russell@russellbryant.com>
Wed, 26 Apr 2006 13:18:32 +0000 (13:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 26 Apr 2006 13:18:32 +0000 (13:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22526 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/strings.h

index 13bb970..6750a27 100644 (file)
@@ -272,6 +272,10 @@ size_t strnlen(const char *, size_t);
 int vasprintf(char **strp, const char *fmt, va_list ap);
 #endif
 
+#if !defined(HAVE_ASPRINTF) && !defined(__AST_DEBUG_MALLOC) 
+int asprintf(char **str, const char *fmt, ...);
+#endif
+
 #ifndef HAVE_STRTOQ
 uint64_t strtoq(const char *nptr, char **endptr, int base);
 #endif