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:
@@ -390,8 +390,10 @@ main(int argc, char *argv[])
|
|||||||
usage(opts);
|
usage(opts);
|
||||||
|
|
||||||
action_opts = create + destroy + force_reset + force_poweroff;
|
action_opts = create + destroy + force_reset + force_poweroff;
|
||||||
|
#ifdef BHYVE_SNAPSHOT
|
||||||
if (checkpoint_file)
|
if (checkpoint_file)
|
||||||
action_opts++;
|
action_opts++;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (action_opts > 1) {
|
if (action_opts > 1) {
|
||||||
fprintf(stderr, "mutually exclusive actions specified\n");
|
fprintf(stderr, "mutually exclusive actions specified\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user