]> granicus.if.org Git - python/commitdiff
Modules/socketmodule.c: netdb_lock: define static.
authorMatthias Klose <doko@ubuntu.com>
Tue, 14 Aug 2012 15:29:04 +0000 (17:29 +0200)
committerMatthias Klose <doko@ubuntu.com>
Tue, 14 Aug 2012 15:29:04 +0000 (17:29 +0200)
Modules/socketmodule.c

index 338622dfcc6ca5fb327094c277bb6712cc6f0019..4f896fd41ea5ad629849d5d001eb48f56bfb160a 100644 (file)
@@ -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