From: Stefan Krah Date: Tue, 26 Apr 2016 14:20:17 +0000 (+0200) Subject: Issue #26857: Workaround for missing symbol "gethostbyaddr_r" on Android. X-Git-Tag: v3.6.0a1~110 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=432dfcf3bc2653a1163a2db9e6b5b38a3c9681e1;p=python Issue #26857: Workaround for missing symbol "gethostbyaddr_r" on Android. --- diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index ec35fb9533..46eeed1ab9 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -163,7 +163,7 @@ if_indextoname(index) -- return the corresponding interface name\n\ # include #endif -#ifndef WITH_THREAD +#if !defined(WITH_THREAD) || defined(__ANDROID__) # undef HAVE_GETHOSTBYNAME_R #endif