Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lte_connectivity: fix LTE_CONNECTIVITY build with CONFIG_POSIX_API=y
inet_pton() function is only accessible when: * CONFIG_POSIX_API=y or * CONFIG_NET_SOCKETS_POSIX_NAMES=y are enabled. Depending on the selected option (both are mutually exclusive), its definition is located in different header file. `lte_ip_addr_helper.c` (part of LTE_CONNECTIVITY) is including just one of those, assuming CONFIG_NET_SOCKETS_POSIX_NAMES=y. Add compatibility with CONFIG_POSIX_API=y by including `arpa/inet.h` whenever POSIX API is enabled. Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
- Loading branch information