summaryrefslogtreecommitdiffstats
path: root/Programs
diff options
context:
space:
mode:
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_freeze_module.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Programs/_freeze_module.c b/Programs/_freeze_module.c
index 4b0633e..dd90d92 100644
--- a/Programs/_freeze_module.c
+++ b/Programs/_freeze_module.c
@@ -9,6 +9,7 @@
#include <Python.h>
#include <marshal.h>
+#include <pycore_import.h>
#include <stdio.h>
#include <sys/types.h>
@@ -24,8 +25,12 @@
static const struct _frozen _PyImport_FrozenModules[] = {
{0, 0, 0} /* sentinel */
};
+static const struct _module_alias aliases[] = {
+ {0, 0} /* sentinel */
+};
const struct _frozen *PyImport_FrozenModules;
+const struct _module_alias *_PyImport_FrozenAliases;
static const char header[] =
"/* Auto-generated by Programs/_freeze_module.c */";
@@ -183,6 +188,7 @@ main(int argc, char *argv[])
const char *name, *inpath, *outpath;
PyImport_FrozenModules = _PyImport_FrozenModules;
+ _PyImport_FrozenAliases = aliases;
if (argc != 4) {
fprintf(stderr, "need to specify the name, input and output paths\n");