summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2012-08-14 17:24:47 +0200
committerMatthias Klose <doko@ubuntu.com>2012-08-14 17:24:47 +0200
commitc551776f8e5b4c8bcb3cf4b91c679ba080e543cf (patch)
tree1a87518cd1f7704da8641a36818e262ccd8a080e
parent7cd8b42f32f18a08cedee7a1e424c4be6923e5c2 (diff)
downloadcpython-git-c551776f8e5b4c8bcb3cf4b91c679ba080e543cf.tar.gz
Modules/socketmodule.c: netdb_lock: define static.
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 70da7c5b18..414994e181 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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