summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Panter <vadmium+py@gmail.com>2016-10-20 00:48:23 (GMT)
committerMartin Panter <vadmium+py@gmail.com>2016-10-20 00:48:23 (GMT)
commitfa27d5f2297b4f3a91b1fe350e760cd4f701d916 (patch)
tree4924f1ef1da1463ac57bf1acee2bc9c49750daf0
parentc6b1e15788ec0d92653e27dac7e1b7c57b4448fb (diff)
downloadcpython-fa27d5f2297b4f3a91b1fe350e760cd4f701d916.zip
cpython-fa27d5f2297b4f3a91b1fe350e760cd4f701d916.tar.gz
cpython-fa27d5f2297b4f3a91b1fe350e760cd4f701d916.tar.bz2
Issue #28480: Avoid label at end of compound statement --without-threads
Based on patch by Masayuki Yamamoto.
-rw-r--r--Misc/NEWS3
-rw-r--r--Modules/socketmodule.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 04e353c..2936e3a 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -20,6 +20,9 @@ Core and Builtins
Library
-------
+- Issue #28480: Fix error building socket module when multithreading is
+ disabled.
+
- Issue #24452: Make webbrowser support Chrome on Mac OS X.
- Issue #20766: Fix references leaked by pdb in the handling of SIGINT
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index f53eade..2620d56 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -664,6 +664,7 @@ internal_setblocking(PySocketSockObject *s, int block)
result = 0;
done:
+ ; /* necessary for --without-threads flag */
Py_END_ALLOW_THREADS
if (result) {