No O_CLOEXEC on windows

This commit is contained in:
Kovid Goyal 2020-10-24 14:05:24 +05:30
parent d28c4a44ef
commit ecc02cfb5a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -580,7 +580,9 @@ static PyMethodDef speedup_methods[] = {
static int
exec_module(PyObject *module) {
PyDateTime_IMPORT;
#ifndef _WIN32
PyModule_AddIntConstant(module, "O_CLOEXEC", O_CLOEXEC);
#endif
return 0;
}