bhyvectl: fix build without BHYVE_SNAPSHOT
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run

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

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");