Issue #14437: Fix building the _io module under Cygwin.
authorAntoine Pitrou <solipsis@pitrou.net>
Sat, 31 Mar 2012 21:50:31 +0000 (23:50 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Sat, 31 Mar 2012 21:50:31 +0000 (23:50 +0200)
Misc/NEWS
Modules/_io/_iomodule.h

index d814b17ff9c72c7f210f09d57c2048698453be66..07eea7297675c6699b92ae1bc3159493cbedbad7 100644 (file)
--- 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.
index 925e4f2cc72a11ef5502472d49b74b274e5be22a..c198b43e782e8c81256274169344498eb6bf85c5 100644 (file)
@@ -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.