Do not build psql's flex module on its own, but instead include it in

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3b0d57eb39233ae8506ac113329bc709c1abb7e5
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2009-11-10T23:12:29Z
Releases: 8.3.9
Do not build psql's flex module on its own, but instead include it in
mainloop.c.  This ensures that postgres_fe.h is read before including
any system headers, which is necessary to avoid problems on some platforms
where we make nondefault selections of feature macros for stdio.h or
other headers.  We have had this policy for flex modules in the backend
for many years, but for some reason it was not applied to psql.
Per trouble report from Alexandra Roy and diagnosis by Albe Laurenz.

Files

PathChange+/−
src/bin/psql/mainloop.c modified +11 −1
src/bin/psql/Makefile modified +5 −2