mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-28 22:43:16 +02:00
No O_CLOEXEC on windows
This commit is contained in:
parent
d28c4a44ef
commit
ecc02cfb5a
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue