Skip to content

Commit 027be99

Browse files
committed
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
1 parent a1174b3 commit 027be99

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

stand/common/misc.c

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,3 +220,16 @@ set_currdev(const char *devname)
220220
env_setenv("loaddev", EV_VOLATILE | EV_NOHOOK, devname, env_noset,
221221
env_nounset);
222222
}
223+
224+
#ifndef LOADER_NET_SUPPORT
225+
/*
226+
* This api is normally provided by dev_net.c
227+
* This stub keeps libsa happy when LOADER_NET_SUPPORT
228+
* is not enabled.
229+
*/
230+
bool
231+
is_tftp(void)
232+
{
233+
return false;
234+
}
235+
#endif

0 commit comments

Comments
 (0)