From f7c4fe7d95a3f323df3b0dc3bffff5fa9d708a0c Mon Sep 17 00:00:00 2001 From: Noah Misch Date: Mon, 18 May 2015 10:02:31 -0400 Subject: Permit use of vsprintf() in PostgreSQL code. The next commit needs it. Back-patch to 9.0 (all supported versions). --- src/port/snprintf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/port/snprintf.c') diff --git a/src/port/snprintf.c b/src/port/snprintf.c index 166374cabd6..0c779a601fc 100644 --- a/src/port/snprintf.c +++ b/src/port/snprintf.c @@ -99,6 +99,7 @@ /* Prevent recursion */ #undef vsnprintf #undef snprintf +#undef vsprintf #undef sprintf #undef vfprintf #undef fprintf @@ -178,7 +179,7 @@ pg_snprintf(char *str, size_t count, const char *fmt,...) return len; } -static int +int pg_vsprintf(char *str, const char *fmt, va_list args) { PrintfTarget target; -- cgit v1.2.3