diff options
author | R. David Murray <rdmurray@bitdance.com> | 2010-10-15 23:12:57 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2010-10-15 23:12:57 (GMT) |
commit | e16cda9ad8dad231d6354c1af2c58a07749e5eca (patch) | |
tree | 900a568922e7ff0e29299ac94ce4015354177733 /Modules | |
parent | 88bd891e6c536cec0b53d2a52115f44f8498c331 (diff) | |
download | cpython-e16cda9ad8dad231d6354c1af2c58a07749e5eca.zip cpython-e16cda9ad8dad231d6354c1af2c58a07749e5eca.tar.gz cpython-e16cda9ad8dad231d6354c1af2c58a07749e5eca.tar.bz2 |
#9862: On AIX PIPE_BUF is broken. Make it 512.
Patch by Sébastien Sablé.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/selectmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/selectmodule.c b/Modules/selectmodule.c index 5c475f5..58cc4c7 100644 --- a/Modules/selectmodule.c +++ b/Modules/selectmodule.c @@ -1786,6 +1786,10 @@ PyInit_select(void) PyModule_AddObject(m, "error", SelectError); #ifdef PIPE_BUF +#ifdef HAVE_BROKEN_PIPE_BUF +#undef PIPE_BUF +#define PIPE_BUF 512 +#endif PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF); #endif |