diff options
Diffstat (limited to 'cli.c')
-rwxr-xr-x | cli.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -47,7 +47,12 @@ void ast_cli(int fd, char *fmt, ...) va_list ap; va_start(ap, fmt); +#ifdef SOLARIS + stuff = (char *)malloc(10240); + vsnprintf(stuff, 10240, fmt, ap); +#else res = vasprintf(&stuff, fmt, ap); +#endif va_end(ap); if (res == -1) { ast_log(LOG_ERROR, "Out of memory\n"); |