diff options
author | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-07-09 22:37:22 (GMT) |
---|---|---|
committer | Amaury Forgeot d'Arc <amauryfa@gmail.com> | 2009-07-09 22:37:22 (GMT) |
commit | ce32eb7406baf7a51f7764a7c6ce245dd99dabe9 (patch) | |
tree | df9d9312bf0cbf7d2dd962e4b8d2299640af24b5 /Modules/selectmodule.c | |
parent | b0c828ae4a18591b135357c47b1baeecb02f3a5e (diff) | |
download | cpython-ce32eb7406baf7a51f7764a7c6ce245dd99dabe9.zip cpython-ce32eb7406baf7a51f7764a7c6ce245dd99dabe9.tar.gz cpython-ce32eb7406baf7a51f7764a7c6ce245dd99dabe9.tar.bz2 |
#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/selectmodule.c')
-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 a405812..d8a68c5 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1746,7 +1746,9 @@ initselect(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__ |