From: Christian Heimes Date: Mon, 6 Dec 2021 18:13:12 +0000 (+0200) Subject: bpo-45582: framework build: modPath must not be const (GH-29944) X-Git-Tag: v3.11.0a3~37 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f16f93e5279f957ca25dd8b91233a44833167a8a;p=thirdparty%2FPython%2Fcpython.git bpo-45582: framework build: modPath must not be const (GH-29944) Co-authored-by: Ronald Oussoren --- diff --git a/Modules/getpath.c b/Modules/getpath.c index 2e46226a0853..9ce7260f7782 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c @@ -756,7 +756,7 @@ library_to_dict(PyObject *dict, const char *key) } #elif defined(WITH_NEXT_FRAMEWORK) && !defined(PY_BOOTSTRAP_PYTHON) // _bootstrap_python does not use framework and crashes - static const char modPath[MAXPATHLEN + 1]; + static char modPath[MAXPATHLEN + 1]; static int modPathInitialized = -1; if (modPathInitialized < 0) { NSModule pythonModule;