Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 2025 12:31:00 +0000
From:      Roman Bogorodskiy <novel@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 9d9974457ce8 - main - bhyvectl: fix build without BHYVE_SNAPSHOT
Message-ID:  <693d5c84.2661f.3cb56e27@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help

The branch main has been updated by novel:

URL: https://cgit.FreeBSD.org/src/commit/?id=9d9974457ce8c6cf9023884ab457d4712dcc237f

commit 9d9974457ce8c6cf9023884ab457d4712dcc237f
Author:     Roman Bogorodskiy <novel@FreeBSD.org>
AuthorDate: 2025-12-13 12:25:22 +0000
Commit:     Roman Bogorodskiy <novel@FreeBSD.org>
CommitDate: 2025-12-13 12:28:15 +0000

    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
---
 usr.sbin/bhyvectl/bhyvectl.c | 2 ++
 1 file changed, 2 insertions(+)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?693d5c84.2661f.3cb56e27>