cpython: 77d16a5dc779 (original) (raw)
Mercurial > cpython
changeset 102495:77d16a5dc779
Issue #27652: Expose ESHUTDOWN conditionally ESHUTDOWN is also exposed conditionally in Modules/errnomodule.c. Patch by Ed Schouten. [#27652]
Berker Peksag berker.peksag@gmail.com | |
---|---|
date | Sat, 30 Jul 2016 14:14:12 +0300 |
parents | 8747e3455ecb |
children | eed3a5b9239f |
files | Objects/exceptions.c |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-)[+] [-] Objects/exceptions.c 2 |
line wrap: on
line diff
--- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -2604,7 +2604,9 @@ void 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);