FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

#9862: On AIX PIPE_BUF is broken. Make it 512. · python/cpython@e16cda9 · GitHub

Repository navigation

Commit e16cda9

Browse files
committed
#9862: On AIX PIPE_BUF is broken. Make it 512.
Patch by Sébastien Sablé.
1 parent 88bd891 commit e16cda9

3 files changed

Lines changed: 11 additions & 0 deletions

File tree

‎Misc/NEWS‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ What's New in Python 3.2 Beta 1?
1010
Core and Builtins
1111
-----------------
1212

13+
- Issue #9862: Compensate for broken PIPE_BUF in AIX by hard coding
14+
its value as the default 512 when compiling on AIX.
15+
1316
- Use locale encoding instead of UTF-8 to encode and decode filenames if
1417
Py_FileSystemDefaultEncoding is not set.
1518

‎Modules/selectmodule.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1786,6 +1786,10 @@ PyInit_select(void)
17861786
PyModule_AddObject(m, "error", SelectError);
17871787

17881788
#ifdef PIPE_BUF
1789+
#ifdef HAVE_BROKEN_PIPE_BUF
1790+
#undef PIPE_BUF
1791+
#define PIPE_BUF 512
1792+
#endif
17891793
PyModule_AddIntConstant(m, "PIPE_BUF", PIPE_BUF);
17901794
#endif
17911795

‎configure.in‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4213,6 +4213,10 @@ fi
42134213
],
42144214
[AC_MSG_RESULT(no value specified)])
42154215

4216+
case $ac_sys_system in
4217+
AIX*)
4218+
AC_DEFINE(HAVE_BROKEN_PIPE_BUF, 1, [Define if the system reports an invalid PIPE_BUF value.]) ;;
4219+
esac
42164220

42174221

42184222
case $ac_sys_system in

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL