]> granicus.if.org Git - postgresql/commit
Fix up getopt() reset management so it works on recent mingw.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Dec 2010 04:50:49 +0000 (23:50 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Dec 2010 04:50:49 +0000 (23:50 -0500)
commit770bddc1b4b59338395185966100056d90e6dcf9
treef8998a0be37bdaf5c955f40e9a2a80c35d3b2d8e
parentd45f163251e290c66c144c347482538bdde9d895
Fix up getopt() reset management so it works on recent mingw.

The mingw people don't appear to care about compatibility with non-GNU
versions of getopt, so force use of our own copy of getopt on Windows.
Also, ensure that we make use of optreset when using our own copy.

Per report from Andrew Dunstan.  Back-patch to all versions supported
on Windows.
configure
configure.in
src/backend/postmaster/postmaster.c
src/backend/tcop/postgres.c