diff options
author | Jason Tishler <jason@tishler.net> | 2003-02-10 20:45:47 (GMT) |
---|---|---|
committer | Jason Tishler <jason@tishler.net> | 2003-02-10 20:45:47 (GMT) |
commit | 8437570ec2208d3f94dca0902ccd72a617ebdc3b (patch) | |
tree | 35b17b6764e30d0361c2ab7da4a2d096ee028080 /Modules/arraymodule.c | |
parent | ba20533d82e1f7578ea77f9d36530fc49583cfdd (diff) | |
download | cpython-8437570ec2208d3f94dca0902ccd72a617ebdc3b.zip cpython-8437570ec2208d3f94dca0902ccd72a617ebdc3b.tar.gz cpython-8437570ec2208d3f94dca0902ccd72a617ebdc3b.tar.bz2 |
Patch #676837: Cygwin array module patch
The attached patch enables the array module
to build cleanly under Cygwin again.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index e048d99..74934bc 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1949,7 +1949,7 @@ arrayiter_traverse(arrayiterobject *it, visitproc visit, void *arg) } static PyTypeObject PyArrayIter_Type = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, /* ob_size */ "arrayiterator", /* tp_name */ sizeof(arrayiterobject), /* tp_basicsize */ @@ -1996,6 +1996,7 @@ initarray(void) PyObject *m; Arraytype.ob_type = &PyType_Type; + PyArrayIter_Type.ob_type = &PyType_Type; m = Py_InitModule3("array", a_methods, module_doc); Py_INCREF((PyObject *)&Arraytype); |