They should be external otherwise linker will complain about multiple declaration.
Fixes 596651d0222ff5196cf80db6e8812a535bf99734 Signed-off-by: Cyrill Gorcunov <gorcu...@gmail.com> --- criu/include/mount.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/include/mount.h b/criu/include/mount.h index 376020548..4945641f6 100644 --- a/criu/include/mount.h +++ b/criu/include/mount.h @@ -292,7 +292,7 @@ extern int do_restore_task_mnt_ns(struct ns_id *nsid); extern struct mount_info *mnt_subtree_next(struct mount_info *mi, struct mount_info *root); -struct mount_info *root_yard_mp; -char *mnt_roots; +extern struct mount_info *root_yard_mp; +extern char *mnt_roots; #endif /* __CR_MOUNT_H__ */ -- 2.31.1 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel