commit | e16cda9ad8dad231d6354c1af2c58a07749e5eca | [log] [tgz] |
---|---|---|
author | R. David Murray <rdmurray@bitdance.com> | Fri Oct 15 23:12:57 2010 +0000 |
committer | R. David Murray <rdmurray@bitdance.com> | Fri Oct 15 23:12:57 2010 +0000 |
tree | 900a568922e7ff0e29299ac94ce4015354177733 | |
parent | 88bd891e6c536cec0b53d2a52115f44f8498c331 [diff] [blame] |
#9862: On AIX PIPE_BUF is broken. Make it 512. Patch by Sébastien Sablé.
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 @@ 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