mirror of
https://github.com/python/cpython.git
synced 2025-10-17 12:18:23 +00:00
#9862: On AIX PIPE_BUF is broken. Make it 512.
Patch by Sébastien Sablé.
This commit is contained in:
parent
88bd891e6c
commit
e16cda9ad8
3 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue