Modules/socketmodule.c: netdb_lock: define static.
This commit is contained in:
parent
f158d86074
commit
d182a6c77e
|
@ -804,7 +804,7 @@ new_sockobject(SOCKET_T fd, int family, int type, int proto)
|
|||
/* Lock to allow python interpreter to continue, but only allow one
|
||||
thread to be in gethostbyname or getaddrinfo */
|
||||
#if defined(USE_GETHOSTBYNAME_LOCK) || defined(USE_GETADDRINFO_LOCK)
|
||||
PyThread_type_lock netdb_lock;
|
||||
static PyThread_type_lock netdb_lock;
|
||||
#endif
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue