Commit 1f9eb879 authored by Stefan Krah's avatar Stefan Krah

Issue #26857: The gethostbyaddr_r() workaround is no longer needed with

api-level >= 23. Patch by Xavier de Gaye.
parent 70b49f60
......@@ -897,4 +897,8 @@ extern _invalid_parameter_handler _Py_silent_invalid_parameter_handler;
#endif /* _MSC_VER >= 1900 */
#endif /* Py_BUILD_CORE */
#ifdef __ANDROID__
#include <android/api-level.h>
#endif
#endif /* Py_PYPORT_H */
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment