On 10/23/2017 12:33 PM, Tom Lane wrote:
Apparently the expectation is that people using such platforms will
manually fix things by defining HAVE_SNPRINTF=1.
I hadn't thought about this particular case. I thought most people were using C99-or-later platforms by now and that HAVE_SPRINTF was mostly a historical curiosity. Perhaps I'm too accustomed to life in the fast lane. But yes, compiling with -DHAVE_SNPRINTF works around the problem.
I installed the attached, which I hope removes the need to specify -DHAVE_SNPRINTF with pre-C99 platforms that have snprintf, without resorting to Autoconf. Jon, could you please give it a try in your environment? Thanks.