Date: Thu, 21 Aug 2025 15:10:47 GMT From: "Simon J. Gerraty" <sjg@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 027be99b1f33 - main - Stub is_tftp when LOADER_NET_SUPPORT is not enabled Message-ID: <202508211510.57LFAliU079488@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by sjg: URL: https://cgit.FreeBSD.org/src/commit/?id=027be99b1f33a5121380e46db54ca6e40a80fe9d commit 027be99b1f33a5121380e46db54ca6e40a80fe9d Author: Simon J. Gerraty <sjg@FreeBSD.org> AuthorDate: 2025-08-21 15:08:53 +0000 Commit: Simon J. Gerraty <sjg@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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202508211510.57LFAliU079488>