No O_CLOEXEC on windows

This commit is contained in:
Kovid Goyal
2020-10-24 14:05:24 +05:30
parent d28c4a44ef
commit ecc02cfb5a
+2
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;
}