You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[nrf fromtree] net: sockets_offload: Fix build error with NO_OPTIMIZATIONS
When CONFIG_NO_OPTIMIZATIONS the compiler will not inline
socket_offload_dns_is_enabled(), which means calls to
socket_offload* remain, and the linker will fail with
in function `zsock_getaddrinfo': undefined reference to
`socket_offload_getaddrinfo'
in function `zsock_freeaddrinfo': undefined reference to
`socket_offload_freeaddrinfo'
Instead of relaying on that function being inlined and the
if'ed code being removed, let's just use the preprocessor.
Signed-off-by: Alberto Escolar Piedras <[email protected]>
(cherry picked from commit dc24583)
Signed-off-by: Robert Lubos <[email protected]>
0 commit comments