From d182a6c77e1b77e28d482e5fe92807f2d95469a6 Mon Sep 17 00:00:00 2001 From: Matthias Klose Date: Tue, 14 Aug 2012 17:29:04 +0200 Subject: [PATCH] Modules/socketmodule.c: netdb_lock: define static. --- Modules/socketmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c index 338622dfcc6..4f896fd41ea 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