pgsql: Fix up getopt() reset management so it works on recent mingw. - Mailing list pgsql-committers

From Tom Lane
Subject pgsql: Fix up getopt() reset management so it works on recent mingw.
Date
Msg-id E1PT5oh-00074E-TK@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
REL9_0_STABLE

Details
-------
http://git.postgresql.org/gitweb?p=postgresql.git;a=commitdiff;h=770bddc1b4b59338395185966100056d90e6dcf9

Modified Files
--------------
configure                           |   25 +++++++++++++++++++++----
configure.in                        |   21 ++++++++++++++-------
src/backend/postmaster/postmaster.c |    5 +++--
src/backend/tcop/postgres.c         |    5 +++--
4 files changed, 41 insertions(+), 15 deletions(-)


pgsql-committers by date:

Previous
From: Tom Lane
Date:
Subject: pgsql: Fix up getopt() reset management so it works on recent mingw.
Next
From: pgsql@postgresql.org
Date:
Subject: pgsql: Tag refs/tags/REL8_1_23 was created