Commit 16e426bb authored by Just van Rossum's avatar Just van Rossum

Yet another addition to [731644]: only use the lock if thread-support

is enabled.
parent 09aecd7a
......@@ -142,8 +142,8 @@ shutdown(how) -- shut down traffic in one or both directions\n\
/* On systems on which getaddrinfo() is believed to not be thread-safe,
(this includes the getaddrinfo emulation) protect access with a lock. */
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
defined(__NetBSD__) || !defined(HAVE_GETADDRINFO)
#if defined(WITH_THREAD) && (defined(__APPLE__) || defined(__FreeBSD__) || \
defined(__OpenBSD__) || defined(__NetBSD__) || !defined(HAVE_GETADDRINFO))
#define USE_GETADDRINFO_LOCK
#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