mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
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
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:
parent
756712d745
commit
9d9974457c
1 changed files with 2 additions and 0 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue