diff options
author | Luke Dashjr <luke-jr+git@utopios.org> | 2020-03-07 01:12:32 +0000 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-06-25 10:23:54 +0800 |
commit | 03e056edcd1a7f7197a29068c52fa33fce12f7d7 (patch) | |
tree | c9d3873732b4da801160344fb775e0ceeea25555 /depends/patches/libevent | |
parent | 67881de0e3b1cef1d0f978582765a8aeeb09c21a (diff) | |
download | bitcoin-03e056edcd1a7f7197a29068c52fa33fce12f7d7.tar.xz |
depends: Patch libevent build to fix IPv6 -rpcbind on Windows
libevent uses getaddrinfo when available, and falls back to gethostbyname
Windows has both, but gethostbyname only supports IPv4
libevent fails to detect Windows's getaddrinfo due to not including the right headers
This patches libevent's configure script to check it correctly
Diffstat (limited to 'depends/patches/libevent')
-rw-r--r-- | depends/patches/libevent/0001-fix-windows-getaddrinfo.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/depends/patches/libevent/0001-fix-windows-getaddrinfo.patch b/depends/patches/libevent/0001-fix-windows-getaddrinfo.patch new file mode 100644 index 0000000000..a98cd90bd5 --- /dev/null +++ b/depends/patches/libevent/0001-fix-windows-getaddrinfo.patch @@ -0,0 +1,15 @@ +diff -ur libevent-2.1.8-stable.orig/configure.ac libevent-2.1.8-stable/configure.ac +--- libevent-2.1.8-stable.orig/configure.ac 2017-01-29 17:51:00.000000000 +0000 ++++ libevent-2.1.8-stable/configure.ac 2020-03-07 01:11:16.311335005 +0000 +@@ -389,6 +389,10 @@ + #ifdef HAVE_NETDB_H + #include <netdb.h> + #endif ++#ifdef _WIN32 ++#include <winsock2.h> ++#include <ws2tcpip.h> ++#endif + ]], + [[ + getaddrinfo; +Only in libevent-2.1.8-stable: configure.ac~ |