From: Russell Bryant Date: Wed, 26 Apr 2006 13:18:32 +0000 (+0000) Subject: add the missing prototype for the included asprintf X-Git-Tag: 1.4.0-beta1~1798 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c2d851de2b841179086adaadcf8cd1b0cc657b59;p=thirdparty%2Fasterisk.git add the missing prototype for the included asprintf git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22526 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/strings.h b/include/asterisk/strings.h index 13bb970ef7..6750a278d7 100644 --- a/include/asterisk/strings.h +++ b/include/asterisk/strings.h @@ -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