From 99da2dd7286e58e339539f7c54d2ebdacfabc233 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Tue, 19 Dec 2017 08:21:04 +0100 Subject: [PATCH] tor: add the patchset (#1917) --- net-vpn/tor/patches/tor-0.3.1.9.patchset | 39 ++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 net-vpn/tor/patches/tor-0.3.1.9.patchset diff --git a/net-vpn/tor/patches/tor-0.3.1.9.patchset b/net-vpn/tor/patches/tor-0.3.1.9.patchset new file mode 100644 index 000000000..a99ab41b2 --- /dev/null +++ b/net-vpn/tor/patches/tor-0.3.1.9.patchset @@ -0,0 +1,39 @@ +From ace4c6a7aa783023ee84bc1a7d8bdc031aaabc36 Mon Sep 17 00:00:00 2001 +From: begasus +Date: Mon, 3 Jul 2017 23:28:37 +0200 +Subject: fix missing IFF_RUNNING + + +diff --git a/src/common/address.c b/src/common/address.c +index 2693239..029fc1d 100644 +--- a/src/common/address.c ++++ b/src/common/address.c +@@ -85,6 +85,10 @@ + #include + #include + ++#ifndef IFF_RUNNING ++#define IFF_RUNNING 0x0001 ++#endif ++ + /* tor_addr_is_null() and maybe other functions rely on AF_UNSPEC being 0 to + * work correctly. Bail out here if we've found a platform where AF_UNSPEC + * isn't 0. */ +diff --git a/src/test/test_address.c b/src/test/test_address.c +index 0d142ad..54170ca 100644 +--- a/src/test/test_address.c ++++ b/src/test/test_address.c +@@ -28,6 +28,10 @@ + #include "test.h" + #include "log_test_helpers.h" + ++#ifndef IFF_RUNNING ++#define IFF_RUNNING 0x0001 ++#endif ++ + /** Return 1 iff sockaddr1 and sockaddr2 represent + * the same IP address and port combination. Otherwise, return 0. + */ +-- +2.7.0 +