Adrian Hall reported a problem to me that snprintf() doesn't exist in, at
Marc G. Fournier <scrappy@hub.org>
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
| Path | Change | +/− |
|---|---|---|
| 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 |