AP_HAL: allow socket build for bootloader

This commit is contained in:
Andrew Tridgell 2024-01-14 18:30:21 +11:00
parent e9b84fa94d
commit 40a029c15d
1 changed files with 2 additions and 0 deletions

View File

@ -99,6 +99,7 @@ void SOCKET_CLASS_NAME::make_sockaddr(const char *address, uint16_t port, struct
sockaddr.sin_addr.s_addr = htonl(inet_str_to_addr(address));
}
#if !defined(HAL_BOOTLOADER_BUILD)
/*
connect the socket
*/
@ -185,6 +186,7 @@ fail_multi:
fd_in = -1;
return false;
}
#endif // HAL_BOOTLOADER_BUILD
/*
connect the socket with a timeout