aboutsummaryrefslogtreecommitdiff
path: root/depends/packages
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2020-03-07 01:12:32 +0000
committerfanquake <fanquake@gmail.com>2020-06-25 10:23:54 +0800
commit03e056edcd1a7f7197a29068c52fa33fce12f7d7 (patch)
treec9d3873732b4da801160344fb775e0ceeea25555 /depends/packages
parent67881de0e3b1cef1d0f978582765a8aeeb09c21a (diff)
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/packages')
-rw-r--r--depends/packages/libevent.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/depends/packages/libevent.mk b/depends/packages/libevent.mk
index eb45e14f6f..ffdd576427 100644
--- a/depends/packages/libevent.mk
+++ b/depends/packages/libevent.mk
@@ -3,8 +3,10 @@ $(package)_version=2.1.11-stable
$(package)_download_path=https://github.com/libevent/libevent/archive/
$(package)_file_name=release-$($(package)_version).tar.gz
$(package)_sha256_hash=229393ab2bf0dc94694f21836846b424f3532585bac3468738b7bf752c03901e
+$(package)_patches=0001-fix-windows-getaddrinfo.patch
define $(package)_preprocess_cmds
+ patch -p1 < $($(package)_patch_dir)/0001-fix-windows-getaddrinfo.patch && \
./autogen.sh
endef