This line does not compile:
addr_struct->sin_addr.s_addr = inet_addr(addr_str);
Including inet.h does not help because of an “extern” (or “look somewhere else”)
extern in_addr_t inet_addr (const char *__cp) __THROW;
The inet_addr() call is a generic POSIX call , and I have a POSIX enabled in prj.conf:
CONFIG_NET_SOCKETS_POSIX_NAMES=y.
However, the compiler says that it can not still find the inet_addr(). Any ideas are appreciated,