]> granicus.if.org Git - postgresql/commit
Do not build psql's flex module on its own, but instead include it in
authorTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Nov 2009 23:12:44 +0000 (23:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Nov 2009 23:12:44 +0000 (23:12 +0000)
commitfd20a349c4c3e1b46b0fe81b369e0f877259d9ee
tree6c27e8e5908515a2fecda51ae477a9c29f904961
parent0b9ed725d1c4bca8b675239a3e1a3c808b4b39ee
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.
src/bin/psql/Makefile
src/bin/psql/mainloop.c