The branch main has been updated by sjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=027be99b1f33a5121380e46db54ca6e40a80fe9d

commit 027be99b1f33a5121380e46db54ca6e40a80fe9d
Author:     Simon J. Gerraty <s...@freebsd.org>
AuthorDate: 2025-08-21 15:08:53 +0000
Commit:     Simon J. Gerraty <s...@freebsd.org>
CommitDate: 2025-08-21 15:08:53 +0000

    Stub is_tftp when LOADER_NET_SUPPORT is not enabled
    
    common/misc.c is a non-optional part of loader.
    If LOADER_NET_SUPPORT is not defined provide a stub that always returns
    false.
    
    Reviewed by:    kevans, des
    Differential Revision:  https://reviews.freebsd.org/D52060
---
 stand/common/misc.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/stand/common/misc.c b/stand/common/misc.c
index 402213100951..a7c46ad2e74c 100644
--- a/stand/common/misc.c
+++ b/stand/common/misc.c
@@ -220,3 +220,16 @@ set_currdev(const char *devname)
        env_setenv("loaddev", EV_VOLATILE | EV_NOHOOK, devname, env_noset,
            env_nounset);
 }
+
+#ifndef LOADER_NET_SUPPORT
+/*
+ * This api is normally provided by dev_net.c
+ * This stub keeps libsa happy when LOADER_NET_SUPPORT
+ * is not enabled.
+ */
+bool
+is_tftp(void)
+{
+    return false;
+}
+#endif

Reply via email to