Karel Zak, le lun. 18 sept. 2023 13:11:09 +0200, a ecrit: > On Sun, Sep 17, 2023 at 06:36:31PM +0200, Samuel Thibault wrote: > > --- a/libmount/src/hooks.c > > +++ b/libmount/src/hooks.c > > @@ -315,9 +315,11 @@ static int call_hook(struct libmnt_context *cxt, struct hookset_hook *hook) > > { > > int rc = 0; > > > > +#if LINUX > > if (mnt_context_is_fake(cxt)) > > DBG(CXT, ul_debugobj(cxt, " FAKE call")); > > else > > +#endif > > rc = hook->func(cxt, hook->hookset, hook->data); > > It seems better to not use libmount/src/hooks.c on non-Linux systems. > Fixed (but not tested:-). That works, thanks! Samuel