aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Bogorodskiy <novel@FreeBSD.org>2025-12-13 12:25:22 +0000
committerRoman Bogorodskiy <novel@FreeBSD.org>2025-12-13 12:28:15 +0000
commit9d9974457ce8c6cf9023884ab457d4712dcc237f (patch)
treec3adb3f3326f94774a43c6f6693cdf070576e8d6
parent756712d745db207085f1fe87dc8258434ec2147d (diff)
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
-rw-r--r--usr.sbin/bhyvectl/bhyvectl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/usr.sbin/bhyvectl/bhyvectl.c b/usr.sbin/bhyvectl/bhyvectl.c
index 9e845ac6b531..8c37b670ab2e 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");