Fix up getopt() reset management so it works on recent mingw.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Dec 2010 04:50:56 +0000 (23:50 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 16 Dec 2010 04:50:56 +0000 (23:50 -0500)
commit2dffe1f8bb92abd90ee346ca474512191f520888
tree122bf8d5ca16bb16f492ecaa61db132b4a35418d
parent7bfefa9a12968c5f3210569f37de402282fb99e6
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