git: 47ef2a131091 - main - loader.efi: Fix LOADER_NET_SUPPORT=no builds
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 02 Nov 2024 22:16:34 UTC
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=47ef2a131091508e049ab10cad7f91a3c1342cd9 commit 47ef2a131091508e049ab10cad7f91a3c1342cd9 Author: Tatiana <t.ermakova@securitycode.ru> AuthorDate: 2024-11-02 22:13:58 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-11-02 22:13:58 +0000 loader.efi: Fix LOADER_NET_SUPPORT=no builds We include too many references to networking things in the non-networking build for loader.efi. Ifdef out netserver command when we are disabling network support to resolve. PR: 277528 MFC After: 2 days Reviewed by: imp --- stand/efi/loader/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 0e2c580d1a8a..500fcba20938 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -1960,6 +1960,7 @@ command_chain(int argc, char *argv[]) COMMAND_SET(chain, "chain", "chain load file", command_chain); +#if defined(LOADER_NET_SUPPORT) extern struct in_addr servip; static int command_netserver(int argc, char *argv[]) @@ -1990,3 +1991,4 @@ command_netserver(int argc, char *argv[]) COMMAND_SET(netserver, "netserver", "change or display netserver URI", command_netserver); +#endif