mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #26857: The gethostbyaddr_r() workaround is no longer needed with
api-level >= 23. Patch by Xavier de Gaye.
This commit is contained in:
parent
70b49f60f4
commit
1f9eb879d5
2 changed files with 9 additions and 1 deletions
|
@ -163,7 +163,11 @@ if_indextoname(index) -- return the corresponding interface name\n\
|
|||
# include <sys/uio.h>
|
||||
#endif
|
||||
|
||||
#if !defined(WITH_THREAD) || defined(__ANDROID__)
|
||||
#if !defined(WITH_THREAD)
|
||||
# undef HAVE_GETHOSTBYNAME_R
|
||||
#endif
|
||||
|
||||
#if defined(__ANDROID__) && __ANDROID_API__ < 23
|
||||
# undef HAVE_GETHOSTBYNAME_R
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue