From 439ef85b0d9ee6e26d4e888e713cc7bf115c25d2 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sat, 12 Dec 1998 21:30:57 +0000
Subject: [PATCH] Fix prototype for 64-bit platforms.

---
 src/backend/port/snprintf.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/src/backend/port/snprintf.c b/src/backend/port/snprintf.c
index 734e8c8353f..1b7482683a5 100644
--- a/src/backend/port/snprintf.c
+++ b/src/backend/port/snprintf.c
@@ -75,7 +75,7 @@ typedef long long long_long;
  * causing nast effects.
  **************************************************************/
 
-/*static char _id[] = "$Id: snprintf.c,v 1.10 1998/10/08 00:34:47 momjian Exp $";*/
+/*static char _id[] = "$Id: snprintf.c,v 1.11 1998/12/12 21:30:57 momjian Exp $";*/
 static char *end;
 static int	SnprfOverflow;
 
@@ -121,7 +121,13 @@ vsnprintf(char *str, size_t count, const char *fmt,...)
  */
 
 static void fmtstr __P((char *value, int ljust, int len, int zpad, int maxwidth));
+
+#ifndef HAVE_LONG_INT_64
 static void fmtnum __P((long value, int base, int dosign, int ljust, int len, int zpad));
+#else
+static void fmtnum __P((long_long value, int base, int dosign, int ljust, int len, int zpad));
+#endif
+
 static void dostr __P((char *, int));
 static char *output;
 static void dopr_outch __P((int c));
-- 
GitLab