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:
Brett Cannon 2008-03-18 15:35:58 +00:00
parent 50a24d8bfd
commit 10ed0f50a9
5 changed files with 2 additions and 31 deletions

View file

@ -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;
}