]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Modules/socketmodule.c: netdb_lock: define static.
authorMatthias Klose <doko@ubuntu.com>
Tue, 14 Aug 2012 15:24:47 +0000 (17:24 +0200)
committerMatthias Klose <doko@ubuntu.com>
Tue, 14 Aug 2012 15:24:47 +0000 (17:24 +0200)
Modules/socketmodule.c

index 70da7c5b188002858e9c1087eb92eeb29e75e74e..414994e181fc3d1f94c85d1edb752c9db4345bda 100644 (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
    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