fix a bad in_addr manipulation on VITA - fixes #6127 (#6366)

added VITA condition
This commit is contained in:
meleu 2018-03-07 18:11:30 -03:00 committed by Francisco José García García
parent 1bccf5cf27
commit d5503e9e7c

View File

@ -213,7 +213,7 @@ int getaddrinfo_retro(const char *node, const char *service,
in_addr->sin_family = host->h_addrtype;
#if defined(AF_INET6) && !defined(__CELLOS_LV2__)
#if defined(AF_INET6) && !defined(__CELLOS_LV2__) || defined(VITA)
/* TODO/FIXME - In case we ever want to support IPv6 */
in_addr->sin_addr.s_addr = inet_addr(host->h_addr_list[0]);
#else