Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 2115:7ea369d05c2e legacy-trunk
better test for existence of hstrerror()
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Tue, 10 Jan 1995 16:30:54 +0000 |
| parents | 172ba04a5191 |
| children | fd5ab7e828fc |
line wrap: on
line diff
--- a/Modules/socketmodule.c Tue Jan 10 15:36:38 1995 +0000 +++ b/Modules/socketmodule.c Tue Jan 10 16:30:54 1995 +0000 @@ -265,7 +265,7 @@ #endif /* HAVE_GETHOSTBYNAME_R */ if (hp == NULL) { -#ifndef NT +#ifdef HAVE_HSTRERROR /* Let's get real error message to return */ extern int h_errno; PyErr_SetString(PySocket_Error, (char *)hstrerror(h_errno)); @@ -1026,7 +1026,7 @@ sizeof(addr.sin_addr), AF_INET); if (h == NULL) { -#ifndef NT +#ifdef HAVE_HSTRERROR /* Let's get real error message to return */ extern int h_errno; PyErr_SetString(PySocket_Error, (char *)hstrerror(h_errno));
