]> granicus.if.org Git - python/commitdiff
Issue #28480: Avoid label at end of compound statement --without-threads
authorMartin Panter <vadmium+py@gmail.com>
Thu, 20 Oct 2016 00:48:23 +0000 (00:48 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Thu, 20 Oct 2016 00:48:23 +0000 (00:48 +0000)
Based on patch by Masayuki Yamamoto.

Misc/NEWS
Modules/socketmodule.c

index 04e353c578260563cfaeefce18e61ef781d5a3ef..2936e3a329f51e2bbb1a8db525d14c3c8c9a6bed 100644 (file)
--- 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
index f53eadeb6c00c77ff29328de33897be1e486c065..2620d5673bd37963740030d713a75ba3e28cd6fb 100644 (file)
@@ -664,6 +664,7 @@ internal_setblocking(PySocketSockObject *s, int block)
     result = 0;
 
   done:
+    ;  /* necessary for --without-threads flag */
     Py_END_ALLOW_THREADS
 
     if (result) {