]> 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:29 +0000 (23:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Nov 2009 23:12:29 +0000 (23:12 +0000)
commit3b0d57eb39233ae8506ac113329bc709c1abb7e5
tree7d69c275c68331cd2c465654458817a3a2e8cead
parentfa40685b955a6352623a7f59ad3ed09396a2154f
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