summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-01-22 15:29:14 (GMT)
committerGuido van Rossum <guido@python.org>2001-01-22 15:29:14 (GMT)
commita120ffcf1245d8abb8ecc6984a8f4aad61ab5af4 (patch)
treea37f7bbdea43de66fd98c7a3b8c4235b896b3b15 /Modules/socketmodule.c
parent31584cb43d1cb8b393b110ef0b994fd431d7dbb6 (diff)
downloadcpython-a120ffcf1245d8abb8ecc6984a8f4aad61ab5af4.zip
cpython-a120ffcf1245d8abb8ecc6984a8f4aad61ab5af4.tar.gz
cpython-a120ffcf1245d8abb8ecc6984a8f4aad61ab5af4.tar.bz2
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index e6bddc5..b3571a5 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -2114,7 +2114,7 @@ static PyObject *SSL_getattr(SSLObject *self, char *name)
}
staticforward PyTypeObject SSL_Type = {
- PyObject_HEAD_INIT(&PyType_Type)
+ PyObject_HEAD_INIT(NULL)
0, /*ob_size*/
"SSL", /*tp_name*/
sizeof(SSLObject), /*tp_basicsize*/
@@ -2381,6 +2381,9 @@ init_socket(void)
return;
#endif /* __TOS_OS2__ */
#endif /* MS_WINDOWS */
+#ifdef USE_SSL
+ SSL_Type.ob_type = &PyType_Type;
+#endif
m = Py_InitModule3("_socket", PySocket_methods, module_doc);
d = PyModule_GetDict(m);
PySocket_Error = PyErr_NewException("socket.error", NULL, NULL);