From 9d9974457ce8c6cf9023884ab457d4712dcc237f Mon Sep 17 00:00:00 2001 From: Roman Bogorodskiy Date: Sat, 13 Dec 2025 13:25:22 +0100 Subject: [PATCH] bhyvectl: fix build without BHYVE_SNAPSHOT Build fails without BHYVE_SNAPSHOT due to undeclared identifier 'checkpoint_file'. Wrap that with a proper #ifdef. Reported by: dhw --- usr.sbin/bhyvectl/bhyvectl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c index 9e845ac6b53..8c37b670ab2 100644 --- a/usr.sbin/bhyvectl/bhyvectl.c +++ b/usr.sbin/bhyvectl/bhyvectl.c @@ -390,8 +390,10 @@ main(int argc, char *argv[]) usage(opts); action_opts = create + destroy + force_reset + force_poweroff; +#ifdef BHYVE_SNAPSHOT if (checkpoint_file) action_opts++; +#endif if (action_opts > 1) { fprintf(stderr, "mutually exclusive actions specified\n");