summaryrefslogtreecommitdiffstats
path: root/Tools/freeze/makefreeze.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/freeze/makefreeze.py')
-rw-r--r--Tools/freeze/makefreeze.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/Tools/freeze/makefreeze.py b/Tools/freeze/makefreeze.py
index f660664..5c6f371 100644
--- a/Tools/freeze/makefreeze.py
+++ b/Tools/freeze/makefreeze.py
@@ -12,7 +12,15 @@ trailer = """\
{0, 0, 0} /* sentinel */
};
-struct _frozen *PyImport_FrozenModules = _PyImport_FrozenModules;
+int
+main(argc, argv)
+ int argc;
+ char **argv;
+{
+ PyImport_FrozenModules = _PyImport_FrozenModules;
+ return Py_FrozenMain(argc, argv);
+}
+
"""
def makefreeze(outfp, dict):