Mercurial > cpython-lru_cache-weakref
diff Modules/selectmodule.c @ 55179:e89faaafa3ee
Merged revisions 73916 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r73916 | amaury.forgeotdarc | 2009-07-10 00:37:22 +0200 (ven., 10 juil. 2009) | 5 lines
#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:44:11 +0000 |
| parents | 06b360a33d57 |
| children | 724dfeab3e9b |
line wrap: on
line diff
--- a/Modules/selectmodule.c Thu Jul 09 20:12:31 2009 +0000 +++ b/Modules/selectmodule.c Thu Jul 09 22:44:11 2009 +0000 @@ -1764,7 +1764,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__
