]> 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:21 +0000 (23:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Tue, 10 Nov 2009 23:12:21 +0000 (23:12 +0000)
commit7a6aa851f5016a3aec0a0fe3f8b579ad1c54fddc
treec4f3d6624ef41d72d05728b9216730946c684329
parent83d4698cc9cc8317bc33dd6b52f5ad9d1ba9ca9a
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