Addition to [731644]: also use the lock when using the getaddrinfo

emulation (ie. when HAVE_GETADDRINFO isn't defined).
This commit is contained in:
Just van Rossum 2003-05-09 08:03:44 +00:00
parent 1040d2ce7d
commit 09aecd7a0d
1 changed files with 2 additions and 2 deletions

View File

@ -141,9 +141,9 @@ shutdown(how) -- shut down traffic in one or both directions\n\
#endif
/* On systems on which getaddrinfo() is believed to not be thread-safe,
protect access with a lock. */
(this includes the getaddrinfo emulation) protect access with a lock. */
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__OpenBSD__) || \
defined(__NetBSD__)
defined(__NetBSD__) || !defined(HAVE_GETADDRINFO)
#define USE_GETADDRINFO_LOCK
#endif