summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2016-04-26 14:20:17 (GMT)
committerStefan Krah <skrah@bytereef.org>2016-04-26 14:20:17 (GMT)
commit432dfcf3bc2653a1163a2db9e6b5b38a3c9681e1 (patch)
treeb6f2f7e973968a4d9c06af68775563aa71234068 /Modules/socketmodule.c
parenta653a27591bc260ba1281eca6a24a665170736d0 (diff)
downloadcpython-432dfcf3bc2653a1163a2db9e6b5b38a3c9681e1.zip
cpython-432dfcf3bc2653a1163a2db9e6b5b38a3c9681e1.tar.gz
cpython-432dfcf3bc2653a1163a2db9e6b5b38a3c9681e1.tar.bz2
Issue #26857: Workaround for missing symbol "gethostbyaddr_r" on Android.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
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 @@ if_indextoname(index) -- return the corresponding interface name\n\
# include <sys/uio.h>
#endif
-#ifndef WITH_THREAD
+#if !defined(WITH_THREAD) || defined(__ANDROID__)
# undef HAVE_GETHOSTBYNAME_R
#endif