mirror of
https://github.com/python/cpython.git
synced 2025-09-14 12:46:49 +00:00
Remove all traces of HAVE_STRERROR.
The removal of strerror.c led to the function check being removed from configure.in.
This commit is contained in:
parent
50a24d8bfd
commit
10ed0f50a9
5 changed files with 2 additions and 31 deletions
|
@ -3110,15 +3110,10 @@ gethost_common(struct hostent *h, struct sockaddr *addr, int alen, int af)
|
|||
}
|
||||
|
||||
if (h->h_addrtype != af) {
|
||||
#ifdef HAVE_STRERROR
|
||||
/* Let's get real error message to return */
|
||||
PyErr_SetString(socket_error,
|
||||
(char *)strerror(EAFNOSUPPORT));
|
||||
#else
|
||||
PyErr_SetString(
|
||||
socket_error,
|
||||
"Address family not supported by protocol family");
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue