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 (2)
......@@ -362,6 +362,8 @@ SOCKET DLLCALL xpms_accept(struct xpms_set *xpms_set, union xp_sockaddr * addr,
if(FD_ISSET(xpms_set->socks[i].sock, &read_fs)) {
#else
fds = calloc(xpms_set->sock_count, sizeof(*fds));
if (fds == NULL)
return INVALID_SOCKET;
for (i = 0; i < xpms_set->sock_count; i++) {
if (xpms_set->socks[i].sock == INVALID_SOCKET)
continue;
......
......@@ -569,6 +569,7 @@ int nonblocking_connect(SOCKET sock, struct sockaddr* addr, size_t size, unsigne
result = 0;
}
else {
optlen = sizeof(result);
if(getsockopt(sock, SOL_SOCKET, SO_ERROR, (void*)&result, &optlen)==SOCKET_ERROR)
result=ERROR_VALUE;
}
......