mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-21 14:26:33 -04:00
No O_CLOEXEC on windows
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user