Adrian Hall reported a problem to me that snprintf() doesn't exist in, at

Marc G. Fournier <scrappy@hub.org>

Commit: 0668aa88179cce20362bad88c9f0be0a461bb699
Author: Marc G. Fournier <scrappy@hub.org>
Date: 1998-08-01T19:30:29Z
Releases: 7.1.1
Adrian Hall reported a problem to me that snprintf() doesn't exist in, at
least, Solaris 2.5.1.  We use it in backend/utils/adt/int8.c.

Add a check to configure so that we see if it exists or not, and, if not,
compile in snprintf.c from backend/port, which was taken from, and falls under
the same Berkeley license as us, the FreeBSD libc/stdio ...

Files

PathChange+/−
src/backend/parser/gram.c modified +7 −7
src/backend/port/Makefile.in modified +2 −2
src/backend/port/snprintf.c added +89 −0
src/configure modified +157 −103
src/configure.in modified +4 −0
src/include/config.h.in modified +3 −0