diff --git a/criu/cr-restore.c b/criu/cr-restore.c index 51f2ff395..0c7370080 100644 --- a/criu/cr-restore.c +++ b/criu/cr-restore.c @@ -108,7 +108,7 @@ #define arch_export_unmap __export_unmap #endif -static struct pstree_item *current; +struct pstree_item *current; static int restore_task_with_children(void *); static int sigreturn_restore(pid_t pid, struct task_restore_args *ta, unsigned long alen, CoreEntry *core); diff --git a/criu/include/pstree.h b/criu/include/pstree.h index 7f5d0de2e..0185486bb 100644 --- a/criu/include/pstree.h +++ b/criu/include/pstree.h @@ -26,6 +26,8 @@ struct pstree_item { TaskKobjIdsEntry *ids; }; +struct pstree_item *current; + struct rst_info; /* See alloc_pstree_item() for details */ static inline struct rst_info *rsti(struct pstree_item *i)