[Python-checkins] cpython (2.7): Modules/socketmodule.c: netdb_lock: define static.

matthias.klose python-checkins at python.org
Tue Aug 14 17:27:10 CEST 2012


http://hg.python.org/cpython/rev/b7d4a13c736e
changeset:   78568:b7d4a13c736e
branch:      2.7
user:        Matthias Klose <doko at ubuntu.com>
date:        Tue Aug 14 17:24:47 2012 +0200
summary:
  Modules/socketmodule.c: netdb_lock: define static.

files:
  Modules/socketmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -761,7 +761,7 @@
 /* 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
 
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list