Fix port of TOR

* missed to include a patch for libevent, thanks to @chelmuth for recognizing!
This commit is contained in:
Stefan Kalkowski
2016-08-31 10:36:32 +02:00
committed by Christian Helmuth
parent b4b02afa5b
commit 29287e292d
3 changed files with 14 additions and 2 deletions

View File

@@ -1 +1 @@
bc9f02a87e99ddb111016ec13c711f7beb5dbb4a 18686a1c621513d60cecbe7111839bcea068e0ee

View File

@@ -1,7 +1,7 @@
LICENSE := BSD-like LICENSE := BSD-like
VERSION := 2.0.22 VERSION := 2.0.22
DOWNLOADS := libevent.archive 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 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 URL(libevent) := https://github.com/libevent/libevent/releases/download/release-2.0.22-stable/libevent-2.0.22-stable.tar.gz
SHA(libevent) := a586882bc93a208318c70fc7077ed8fca9862864 SHA(libevent) := a586882bc93a208318c70fc7077ed8fca9862864

View File

@@ -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);