diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-07-09 22:44:11 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-07-09 22:44:11 (GMT) |
commit | ace3102131b29081119050dff4e229a58a487976 (patch) | |
tree | e500a0daf5fc247676d427033571f49d7d556e6f /Modules | |
parent | 414c91f7e4917657806e6f80ad19cc752907ff2c (diff) | |
download | cpython-ace3102131b29081119050dff4e229a58a487976.zip cpython-ace3102131b29081119050dff4e229a58a487976.tar.gz cpython-ace3102131b29081119050dff4e229a58a487976.tar.bz2 |
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)
........
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/selectmodule.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 0855375..d40e8b5 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1764,7 +1764,9 @@ PyInit_select(void) 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__ |