Part of SF patch #102409 by jlt63 to support building these modules
under CYGWIN as shared libraries (DLLs).
diff --git a/Modules/rotormodule.c b/Modules/rotormodule.c
index 9f58ff2..cc25924 100644
--- a/Modules/rotormodule.c
+++ b/Modules/rotormodule.c
@@ -576,7 +576,7 @@
statichere PyTypeObject Rotor_Type = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"rotor", /*tp_name*/
sizeof(Rotorobj), /*tp_size*/
@@ -619,5 +619,6 @@
DL_EXPORT(void)
initrotor(void)
{
+ Rotor_Type.ob_type = &PyType_Type;
(void)Py_InitModule("rotor", rotor_methods);
}