SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
Support building this as a DLL under Cygwin.
diff --git a/Modules/xreadlinesmodule.c b/Modules/xreadlinesmodule.c
index 4f8b398..4cdef8a 100644
--- a/Modules/xreadlinesmodule.c
+++ b/Modules/xreadlinesmodule.c
@@ -84,7 +84,7 @@
};
static PyTypeObject XReadlinesObject_Type = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0,
"xreadlines",
sizeof(PyXReadlinesObject) + PyGC_HEAD_SIZE,
@@ -118,5 +118,6 @@
{
PyObject *m;
+ XReadlinesObject_Type.ob_type = &PyType_Type;
m = Py_InitModule("xreadlines", xreadlines_methods);
}