Global vars should be defined as extern ones, otherwise linker will complain about multiple definition of symbols.
Fixes a2ac72ab1d35ba49ee2cc59ab973ac624d6125f0 Signed-off-by: Cyrill Gorcunov <gorcu...@gmail.com> --- criu/include/mount-v2.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/include/mount-v2.h b/criu/include/mount-v2.h index b560009b7..b0f314ea4 100644 --- a/criu/include/mount-v2.h +++ b/criu/include/mount-v2.h @@ -38,7 +38,7 @@ struct sharing_group { char *source; }; -struct list_head nested_pidns_procs; +extern struct list_head nested_pidns_procs; extern int prepare_mnt_ns_v2(void); extern int read_mnt_ns_img_v2(struct mount_info *info); -- 2.31.1 _______________________________________________ Devel mailing list Devel@openvz.org https://lists.openvz.org/mailman/listinfo/devel