Mercurial > cpython-lru_cache-weakref
diff Modules/selectmodule.c @ 55178:5609352fea12 legacy-trunk
#6416: Fix compilation of the select module on Windows, as well as test_subprocess:
PIPE_BUF is not defined on Windows, and probably has no meaning there.
Anyway the subprocess module uses another way to perform non-blocking reads (with a thread)
| author | Amaury Forgeot d'Arc <amauryfa@gmail.com> |
|---|---|
| date | Thu, 09 Jul 2009 22:37:22 +0000 |
| parents | 9c9fe9aafba6 |
| children | 69a04dbd5f0a |
line wrap: on
line diff
--- a/Modules/selectmodule.c Thu Jul 09 18:41:03 2009 +0000 +++ b/Modules/selectmodule.c Thu Jul 09 22:37:22 2009 +0000 @@ -1746,7 +1746,9 @@ Py_INCREF(SelectError); PyModule_AddObject(m, "error", SelectError); +#ifdef PIPE_BUF PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF); +#endif #if defined(HAVE_POLL) #ifdef __APPLE__
