Compilation errors with mingw build caused by undefined optreset

From: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
To: PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org>
Subject: Compilation errors with mingw build caused by undefined optreset
Date: 2014-05-08 05:42:21
Message-ID: CAB7nPqQNW_mvy2_8gXe+FygCW28eRRFP-FU1Z_PnQO1MjsA0KA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
20140508_minwg_getopt_error.patch application/octet-stream 453 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2014-05-08 05:48:55 Ignore files in src/interfaces/libpq generated by windows builds
Previous Message Michael Paquier 2014-05-08 05:01:42 popen and pclose redefinitions causing many warning in Windows build