Compilation errors with mingw build caused by undefined optreset - Mailing list pgsql-hackers

From Michael Paquier
Subject Compilation errors with mingw build caused by undefined optreset
Date
Msg-id CAB7nPqQNW_mvy2_8gXe+FygCW28eRRFP-FU1Z_PnQO1MjsA0KA@mail.gmail.com
Whole thread Raw
Responses Re: Compilation errors with mingw build caused by undefined optreset
List pgsql-hackers
Hi all,

Since commit 60ff2fd introducing the centralizated getopt-related
things in a global header file, build on Windows with mingw is failing
because of some declarations of HAVE_INT_OPTRESET causing optreset to
become undefined:
postmaster.c: In function 'PostmasterMain':
postmaster.c:853:2: error: 'optreset' undeclared (first use in this function)
postmaster.c:853:2: note: each undeclared identifier is reported only
once for each function it appears in

This failure is new with 9.4, and attached is a patch fixing it...
Regards,
--
Michael

Attachment

pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: popen and pclose redefinitions causing many warning in Windows build
Next
From: Michael Paquier
Date:
Subject: Ignore files in src/interfaces/libpq generated by windows builds