mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
No O_CLOEXEC on windows
This commit is contained in:
parent
d28c4a44ef
commit
ecc02cfb5a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user