summaryrefslogtreecommitdiffstats
path: root/Modules/_struct.c
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2016-10-02 05:33:39 (GMT)
committerZachary Ware <zachary.ware@gmail.com>2016-10-02 05:33:39 (GMT)
commit854adb1e0175dc915f5b611a2c780df6213d7c4b (patch)
tree8cf57ec3b8532c27018fbf9628862536304e388d /Modules/_struct.c
parent14b4b41cdc5c44ede1496ae6d5f76373fe67e8ef (diff)
downloadcpython-854adb1e0175dc915f5b611a2c780df6213d7c4b.zip
cpython-854adb1e0175dc915f5b611a2c780df6213d7c4b.tar.gz
cpython-854adb1e0175dc915f5b611a2c780df6213d7c4b.tar.bz2
Issue #21124: Fix building _struct on Cygwin.
Patch by Masayuki Yamamoto.
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r--Modules/_struct.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c
index 796d168..9d48691 100644
--- a/Modules/_struct.c
+++ b/Modules/_struct.c
@@ -1650,7 +1650,7 @@ unpackiter_iternext(unpackiterobject *self)
}
static PyTypeObject unpackiter_type = {
- PyVarObject_HEAD_INIT(&PyType_Type, 0)
+ PyVarObject_HEAD_INIT(NULL, 0)
"unpack_iterator", /* tp_name */
sizeof(unpackiterobject), /* tp_basicsize */
0, /* tp_itemsize */