Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 28949:ac487a7f7f2c legacy-trunk
Patch #708495: Port more stuff to OpenVMS.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Sat, 03 May 2003 09:14:54 +0000 |
| parents | a769e079bb12 |
| children | 09422c301826 |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sat May 03 09:09:02 2003 +0000 +++ b/Modules/socketmodule.c Sat May 03 09:14:54 2003 +0000 @@ -2199,7 +2199,11 @@ socket_gethostbyname(PyObject *self, PyObject *args) { char *name; +#ifdef ENABLE_IPV6 struct sockaddr_storage addrbuf; +#else + struct sockaddr_in addrbuf; +#endif if (!PyArg_ParseTuple(args, "s:gethostbyname", &name)) return NULL; @@ -2357,7 +2361,11 @@ { char *name; struct hostent *h; - struct sockaddr_storage addr; +#ifdef ENABLE_IPV6 + struct sockaddr_storage addr; +#else + struct sockaddr_in addr; +#endif struct sockaddr *sa; PyObject *ret; #ifdef HAVE_GETHOSTBYNAME_R
