From 29287e292d887fb759c0dc2e9a5a1d5b1ac96efd Mon Sep 17 00:00:00 2001 From: Stefan Kalkowski Date: Wed, 31 Aug 2016 10:36:32 +0200 Subject: [PATCH] Fix port of TOR * missed to include a patch for libevent, thanks to @chelmuth for recognizing! --- ports/libevent.hash | 2 +- ports/libevent.port | 2 +- src/lib/libevent/win32.patch | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 src/lib/libevent/win32.patch diff --git a/ports/libevent.hash b/ports/libevent.hash index 71992c9..238547b 100644 --- a/ports/libevent.hash +++ b/ports/libevent.hash @@ -1 +1 @@ -bc9f02a87e99ddb111016ec13c711f7beb5dbb4a +18686a1c621513d60cecbe7111839bcea068e0ee diff --git a/ports/libevent.port b/ports/libevent.port index 3e70dac..1e618df 100644 --- a/ports/libevent.port +++ b/ports/libevent.port @@ -1,7 +1,7 @@ LICENSE := BSD-like VERSION := 2.0.22 DOWNLOADS := libevent.archive -PATCHES := $(addprefix src/lib/libevent/,event-internal.patch) +PATCHES := $(addprefix src/lib/libevent/,event-internal.patch win32.patch) PATCH_OPT := -p1 -d src/lib/libevent URL(libevent) := https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz SHA(libevent) := a586882bc93a208318c70fc7077ed8fca9862864 diff --git a/src/lib/libevent/win32.patch b/src/lib/libevent/win32.patch new file mode 100644 index 0000000..20a8cb3 --- /dev/null +++ b/src/lib/libevent/win32.patch @@ -0,0 +1,12 @@ +diff --git a/evutil.c b/evutil.c +--- a/evutil.c ++++ b/evutil.c +@@ -182,7 +182,7 @@ + int + evutil_socketpair(int family, int type, int protocol, evutil_socket_t fd[2]) + { +-#ifndef WIN32 ++#if 0 + return socketpair(family, type, protocol, fd); + #else + return evutil_ersatz_socketpair(family, type, protocol, fd);