summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-03-18 15:35:58 (GMT)
committerBrett Cannon <bcannon@gmail.com>2008-03-18 15:35:58 (GMT)
commit10ed0f50a989f83395b7af67249d44d2419e5d3f (patch)
tree40223244ca701e2eb978455d710ba6c6f585fa65 /Modules/socketmodule.c
parent50a24d8bfdb831f6cb79ad717af6e5c17230763f (diff)
downloadcpython-10ed0f50a989f83395b7af67249d44d2419e5d3f.zip
cpython-10ed0f50a989f83395b7af67249d44d2419e5d3f.tar.gz
cpython-10ed0f50a989f83395b7af67249d44d2419e5d3f.tar.bz2
Remove all traces of HAVE_STRERROR.
The removal of strerror.c led to the function check being removed from configure.in.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index d5114e8..13354d0 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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;
}