Modules/socketmodule.c: netdb_lock: define static.

This commit is contained in:
Matthias Klose 2012-08-14 17:24:47 +02:00
parent 7cd8b42f32
commit c551776f8e
1 changed files with 1 additions and 1 deletions

View File

@ -761,7 +761,7 @@ new_sockobject(SOCKET_T fd, int family, int type, int proto)
/* Lock to allow python interpreter to continue, but only allow one /* Lock to allow python interpreter to continue, but only allow one
thread to be in gethostbyname or getaddrinfo */ thread to be in gethostbyname or getaddrinfo */
#if defined(USE_GETHOSTBYNAME_LOCK) || defined(USE_GETADDRINFO_LOCK) #if defined(USE_GETHOSTBYNAME_LOCK) || defined(USE_GETADDRINFO_LOCK)
PyThread_type_lock netdb_lock; static PyThread_type_lock netdb_lock;
#endif #endif