diff options
author | Just van Rossum <just@letterror.com> | 2003-05-09 08:12:00 (GMT) |
---|---|---|
committer | Just van Rossum <just@letterror.com> | 2003-05-09 08:12:00 (GMT) |
commit | 16e426bb15a7166c7463693036b82942d78043e1 (patch) | |
tree | 8cda41acb60f9099247ae772870b13575def18a1 /Modules | |
parent | 09aecd7a0deeae8e7b8aaee9d9ee86aff6ddaea1 (diff) | |
download | cpython-16e426bb15a7166c7463693036b82942d78043e1.zip cpython-16e426bb15a7166c7463693036b82942d78043e1.tar.gz cpython-16e426bb15a7166c7463693036b82942d78043e1.tar.bz2 |
Yet another addition to [731644]: only use the lock if thread-support
is enabled.
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/socketmodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 4447f09..fc5ea8f 100644 --- a/Modules/socketmodule.c +++ b/Modules/socketmodule.c @@ -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 |