diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-07-30 11:14:12 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-07-30 11:14:12 (GMT) |
commit | a787e5f31d53cb8458ebc34b341886db4f8f88dc (patch) | |
tree | 0b3f5ef283f2593b44d99cc19c12e7dbe0774b84 /Objects | |
parent | 01d17190627ea7b33d7a36cbaf22b7dd9799b72f (diff) | |
download | cpython-a787e5f31d53cb8458ebc34b341886db4f8f88dc.zip cpython-a787e5f31d53cb8458ebc34b341886db4f8f88dc.tar.gz cpython-a787e5f31d53cb8458ebc34b341886db4f8f88dc.tar.bz2 |
Issue #27652: Expose ESHUTDOWN conditionally
ESHUTDOWN is also exposed conditionally in Modules/errnomodule.c.
Patch by Ed Schouten.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/exceptions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index d97d569..f829d32 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -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); |