Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commits (1)
......@@ -617,9 +617,11 @@ union xp_sockaddr* inet_ptoaddr(char *addr_str, union xp_sockaddr *addr, size_t
if(getaddrinfo(addr_str, NULL, &hints, &res))
return NULL;
for(cur = res; cur; cur++) {
for(cur = res; cur; cur = cur->ai_next) {
if(cur->ai_addr->sa_family == AF_INET6)
break;
if(cur->ai_addr->sa_family == AF_INET)
break;
}
if(!cur) {
freeaddrinfo(res);
......