Fix portability problems with glibc 2.0, as reported in #449157.
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 16b81ac..525a19e 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -447,7 +447,11 @@
 	if (error == EAI_SYSTEM)
 		return PySocket_Err();
 
+#ifdef HAVE_GAI_STRERROR
 	v = Py_BuildValue("(is)", error, gai_strerror(error));
+#else
+	v = Py_BuildValue("(is)", error, "getaddrinfo failed");
+#endif
 	if (v != NULL) {
 		PyErr_SetObject(PyGAI_Error, v);
 		Py_DECREF(v);