From: Martin Panter Date: Thu, 20 Oct 2016 00:48:23 +0000 (+0000) Subject: Issue #28480: Avoid label at end of compound statement --without-threads X-Git-Tag: v3.6.0b3~98 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fa27d5f2297b4f3a91b1fe350e760cd4f701d916;p=thirdparty%2FPython%2Fcpython.git Issue #28480: Avoid label at end of compound statement --without-threads Based on patch by Masayuki Yamamoto. --- diff --git a/Misc/NEWS b/Misc/NEWS index 04e353c57826..2936e3a329f5 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 f53eadeb6c00..2620d5673bd3 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) {