Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 16106:28c414dcb3e1 legacy-trunk
SF Patch #103185, by jlt63: Some more standard modules cleanup for Cygwin
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 22 Jan 2001 15:29:14 +0000 |
| parents | f9a15a583c79 |
| children | 166e87836e8e |
line wrap: on
line diff
--- a/Modules/socketmodule.c Mon Jan 22 14:53:29 2001 +0000 +++ b/Modules/socketmodule.c Mon Jan 22 15:29:14 2001 +0000 @@ -2114,7 +2114,7 @@ } 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 @@ 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);
