toolcontext: define _init_single_segtype only if libdl is enabled
PATCH 1/1 toolcontext: define _init_single_segtype only if libdl is enabled
Fixes regression introduced in dd1d42d5d07194dc7bef8776830c8216ce64f42b.
--- lib/commands/toolcontext.c | 2 ++ 1 file changed, 2 insertions(+)
lib/commands/toolcontext.c +2 -0
@@ -1445,6 +1445,7 @@ int lvm_register_segtype(struct segtype_library *seglib,return 1 ; } +#ifdef HAVE_LIBDL static int _init_single_segtype (struct cmd_context *cmd,struct segtype_library *seglib) {
@@ -1462,6 +1463,7 @@ static int _init_single_segtype(struct cmd_context *cmd, return lvm_register_segtype(seglib, segtype); } +#endif static int _init_segtypes (struct cmd_context *cmd) {
Signature · 1 line
glebfm