-#define BUFSIZE (65536)
-
-#ifndef HAVE_VASPRINTF
-#define vasprintf Vasprintf
-
-static int Vasprintf(char **buf, const char *fmt, va_list ap)
-{
- int ret;
- static char static_buf[8192];
-
- *buf = static_buf;
-
-#if defined(HAVE_VSNPRINTF)
- ret = vsnprintf(*buf, sizeof(static_buf), fmt, ap);
-#else
- ret = vsprintf(*buf, fmt, ap);
-#endif
- return ret;
-}
-
-#endif /* ifndef HAVE_VASPRINTF */