diff --git a/stand/common/misc.c b/stand/common/misc.c --- a/stand/common/misc.c +++ b/stand/common/misc.c @@ -220,3 +220,16 @@ 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