Title: [MinGW] Can't compile Modules/posixmodule.c by MinGW - several macro are missed
Type: compile error Stage:
Components: Build Versions:
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: martin.panter, vmurashev
Priority: normal Keywords: patch

Created on 2016-09-25 11:50 by vmurashev, last changed 2016-09-25 12:43 by vmurashev.

File name Uploaded Description Edit
posixmodule.c.3.5.mingw.patch vmurashev, 2016-09-25 11:50
posixmodule.c.2.7.mingw.patch vmurashev, 2016-09-25 11:50
Messages (3)
msg277367 - (view) Author: Vitaly Murashev (vmurashev) * Date: 2016-09-25 11:50
'posixmodule.c' is written pretty well, but some important MinGW realated macro are missed.
And as a result an attempt to complile Modules/posixmodule.c by MinGW fails.

So suggested patch (for 3.5.2 and 2.7.12)
just turns on missed MinGW related macro
msg277369 - (view) Author: Martin Panter (martin.panter) * (Python committer) Date: 2016-09-25 12:27
This competes with the patch at Issue 17598.

How are you building Python? I presume you are not using the configure script. It would be good to come up with a patch that addresses for both cases.
msg277372 - (view) Author: Vitaly Murashev (vmurashev) * Date: 2016-09-25 12:43
We ( are building Python for Windows completely by cmake and MinGW using PC/pyconfig.h without any configure scripts
Date User Action Args
2016-09-25 12:43:45vmurashevsetmessages: + msg277372
2016-09-25 12:27:37martin.pantersetnosy: + martin.panter
messages: + msg277369
2016-09-25 11:50:55vmurashevsetfiles: + posixmodule.c.2.7.mingw.patch
2016-09-25 11:50:21vmurashevcreate