The branch main has been updated by novel:

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

commit 9d9974457ce8c6cf9023884ab457d4712dcc237f
Author:     Roman Bogorodskiy <[email protected]>
AuthorDate: 2025-12-13 12:25:22 +0000
Commit:     Roman Bogorodskiy <[email protected]>
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");

Reply via email to