diff options
author | Jason Tishler <jason@tishler.net> | 2003-02-10 20:48:35 (GMT) |
---|---|---|
committer | Jason Tishler <jason@tishler.net> | 2003-02-10 20:48:35 (GMT) |
commit | 0c10015a6e374544b4664eb0165aef65d986f469 (patch) | |
tree | a37332228f857669c1cb20e4737e53ec695df5c6 | |
parent | 8437570ec2208d3f94dca0902ccd72a617ebdc3b (diff) | |
download | cpython-0c10015a6e374544b4664eb0165aef65d986f469.zip cpython-0c10015a6e374544b4664eb0165aef65d986f469.tar.gz cpython-0c10015a6e374544b4664eb0165aef65d986f469.tar.bz2 |
Patch #676839: Cygwin _iconv_codec module patch
The attached patch enables the _iconv_codec
module to build cleanly under Cygwin.
-rw-r--r-- | Modules/_iconv_codec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Modules/_iconv_codec.c b/Modules/_iconv_codec.c index 9963230..bcc1d00 100644 --- a/Modules/_iconv_codec.c +++ b/Modules/_iconv_codec.c @@ -607,7 +607,7 @@ iconvcodec_repr(PyObject *self) } static PyTypeObject iconvcodec_Type = { - PyObject_HEAD_INIT(&PyType_Type) + PyObject_HEAD_INIT(NULL) 0, /* Number of items for varobject */ "iconvcodec", /* Name of this type */ sizeof(iconvcodecObject), /* Basic object size */ @@ -688,6 +688,7 @@ init_iconv_codec(void) Py_FatalError("can't initialize the _iconv_codec module: mixed endianess"); iconv_close(hdl); + iconvcodec_Type.ob_type = &PyType_Type; m = Py_InitModule("_iconv_codec", _iconv_codec_methods); PyModule_AddStringConstant(m, "__version__", (char*)__version__); |