mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Issue #27652: Expose ESHUTDOWN conditionally
ESHUTDOWN is also exposed conditionally in Modules/errnomodule.c. Patch by Ed Schouten.
This commit is contained in:
parent
01d1719062
commit
a787e5f31d
1 changed files with 2 additions and 0 deletions
|
@ -2604,7 +2604,9 @@ _PyExc_Init(PyObject *bltinmod)
|
|||
ADD_ERRNO(BlockingIOError, EWOULDBLOCK);
|
||||
POST_INIT(BrokenPipeError);
|
||||
ADD_ERRNO(BrokenPipeError, EPIPE);
|
||||
#ifdef ESHUTDOWN
|
||||
ADD_ERRNO(BrokenPipeError, ESHUTDOWN);
|
||||
#endif
|
||||
POST_INIT(ChildProcessError);
|
||||
ADD_ERRNO(ChildProcessError, ECHILD);
|
||||
POST_INIT(ConnectionAbortedError);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue