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
This commit is contained in:
Roman Bogorodskiy
2025-12-13 13:25:22 +01:00
parent 756712d745
commit 9d9974457c
+2
View File
@@ -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");