Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 23807:cc65b5bcfc38 legacy-trunk
work around name clash with OS/2 TCPIP routine sock_init()
| author | Andrew MacIntyre <andymac@bullseye.apana.org.au> |
|---|---|
| date | Thu, 13 Jun 2002 11:53:52 +0000 |
| parents | 1842db6a1394 |
| children | 203d1412a7e8 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Thu Jun 13 11:53:12 2002 +0000 +++ b/Modules/socketmodule.c Thu Jun 13 11:53:52 2002 +0000 @@ -2057,7 +2057,7 @@ /*ARGSUSED*/ static int -sock_init(PyObject *self, PyObject *args, PyObject *kwds) +sock_initobj(PyObject *self, PyObject *args, PyObject *kwds) { PySocketSockObject *s = (PySocketSockObject *)self; SOCKET_T fd; @@ -2133,7 +2133,7 @@ 0, /* tp_descr_get */ 0, /* tp_descr_set */ 0, /* tp_dictoffset */ - sock_init, /* tp_init */ + sock_initobj, /* tp_init */ 0, /* set below */ /* tp_alloc */ sock_new, /* tp_new */ 0, /* set below */ /* tp_free */
