]> 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:41 +0000 (23:50 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Dec 2010 04:50:41 +0000 (23:50 -0500)
commit5cdd65f3241ce10c66953228daef60df7b3966d1
treeea8cab37764b7a3eed1a5d9ae5946e145fc35527
parent2a6ebe70fb2f7ec97a08dc07214fe2ca571d2780
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