Issue #26857: Workaround for missing symbol "gethostbyaddr_r" on Android.
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index ec35fb9..46eeed1 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -163,7 +163,7 @@
 # include <sys/uio.h>
 #endif
 
-#ifndef WITH_THREAD
+#if !defined(WITH_THREAD) || defined(__ANDROID__)
 # undef HAVE_GETHOSTBYNAME_R
 #endif