[Python-checkins] cpython: Issue #26857: Workaround for missing symbol "gethostbyaddr_r" on Android.

stefan.krah python-checkins at python.org
Tue Apr 26 10:22:12 EDT 2016


https://hg.python.org/cpython/rev/eb19ad1918cd
changeset:   101159:eb19ad1918cd
user:        Stefan Krah <skrah at bytereef.org>
date:        Tue Apr 26 16:20:17 2016 +0200
summary:
  Issue #26857: Workaround for missing symbol "gethostbyaddr_r" on Android.

files:
  Modules/socketmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- 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
 

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list