changeset: 104576:9316b4ebf3fa branch: 3.6 parent: 104573:39ac5093bdbb user: Martin Panter date: Thu Oct 20 00:48:23 2016 +0000 files: Misc/NEWS Modules/socketmodule.c description: Issue #28480: Avoid label at end of compound statement --without-threads Based on patch by Masayuki Yamamoto. diff -r 39ac5093bdbb -r 9316b4ebf3fa Misc/NEWS --- a/Misc/NEWS Thu Oct 20 00:45:50 2016 +0200 +++ b/Misc/NEWS Thu Oct 20 00:48:23 2016 +0000 @@ -20,6 +20,9 @@ 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 -r 39ac5093bdbb -r 9316b4ebf3fa Modules/socketmodule.c --- a/Modules/socketmodule.c Thu Oct 20 00:45:50 2016 +0200 +++ b/Modules/socketmodule.c Thu Oct 20 00:48:23 2016 +0000 @@ -664,6 +664,7 @@ result = 0; done: + ; /* necessary for --without-threads flag */ Py_END_ALLOW_THREADS if (result) {