summaryrefslogtreecommitdiffstats
path: root/Modules/socketmodule.c
diff options
context:
space:
mode:
authorMatthias Klose <doko@ubuntu.com>2012-08-14 15:29:04 (GMT)
committerMatthias Klose <doko@ubuntu.com>2012-08-14 15:29:04 (GMT)
commitd182a6c77e1b77e28d482e5fe92807f2d95469a6 (patch)
tree25c615e622c0677063c2a816d238363d4feed0ea /Modules/socketmodule.c
parentf158d86074465914c8de22e357c17090eb959da4 (diff)
downloadcpython-d182a6c77e1b77e28d482e5fe92807f2d95469a6.zip
cpython-d182a6c77e1b77e28d482e5fe92807f2d95469a6.tar.gz
cpython-d182a6c77e1b77e28d482e5fe92807f2d95469a6.tar.bz2
Modules/socketmodule.c: netdb_lock: define static.
Diffstat (limited to 'Modules/socketmodule.c')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index 338622d..4f896fd 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -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