From: Antoine Pitrou Date: Sat, 31 Mar 2012 21:50:31 +0000 (+0200) Subject: Issue #14437: Fix building the _io module under Cygwin. X-Git-Tag: v3.3.0a2~10^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6211b881613de6654ec8b5e77f3c705f1b4becb8;p=thirdparty%2FPython%2Fcpython.git Issue #14437: Fix building the _io module under Cygwin. --- diff --git a/Misc/NEWS b/Misc/NEWS index d814b17ff9c7..07eea7297675 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -105,6 +105,8 @@ Extension Modules Build ----- +- Issue #14437: Fix building the _io module under Cygwin. + - Issue #14387: Do not include accu.h from Python.h. - Issue #14359: Only use O_CLOEXEC in _posixmodule.c if it is defined. diff --git a/Modules/_io/_iomodule.h b/Modules/_io/_iomodule.h index 925e4f2cc72a..c198b43e782e 100644 --- a/Modules/_io/_iomodule.h +++ b/Modules/_io/_iomodule.h @@ -67,7 +67,7 @@ typedef struct { PyObject *filename; /* Not used, but part of the IOError object */ Py_ssize_t written; } PyBlockingIOErrorObject; -PyAPI_DATA(PyObject *) PyExc_BlockingIOError; +extern PyObject *PyExc_BlockingIOError; /* * Offset type for positioning.