Update DHT library to 0.25

Fixes: #508
This commit is contained in:
Mike Gelfand
2018-02-10 11:35:14 +03:00
parent 896de2b593
commit 96926a8337
3 changed files with 7 additions and 2 deletions

2
.gitmodules vendored
View File

@@ -1,7 +1,7 @@
[submodule "third-party/dht"]
path = third-party/dht
url = https://github.com/transmission/dht
branch = post-0.24-transmission
branch = post-0.25-transmission
[submodule "third-party/libb64"]
path = third-party/libb64
url = https://github.com/transmission/libb64

View File

@@ -841,6 +841,11 @@ int dht_random_bytes(void* buf, size_t size)
return size;
}
int dht_sendto(int sockfd, void const* buf, int len, int flags, struct sockaddr const* to, int tolen)
{
return sendto(sockfd, buf, len, flags, to, tolen);
}
#if defined(_WIN32) && !defined(__MINGW32__)
int dht_gettimeofday(struct timeval* tv, struct timezone* tz)