Ticket #26715: p1

File p1, 750 bytes (added by neel, 2 years ago)

Patch which fixes described error, but not IPv6 one

Line 
1From da768846ac472b7e9093d39e538aa0162614808e Mon Sep 17 00:00:00 2001
2From: Neel Chauhan <neel@neelc.org>
3Date: Mon, 9 Jul 2018 20:54:31 -0400
4Subject: [PATCH] Fix build on FreeBSD for connection_edge.c
5
6---
7 src/core/or/connection_edge.c | 4 ++++
8 1 file changed, 4 insertions(+)
9
10diff --git a/src/core/or/connection_edge.c b/src/core/or/connection_edge.c
11index 8e8a5e21c..66811f1e6 100644
12--- a/src/core/or/connection_edge.c
13+++ b/src/core/or/connection_edge.c
14@@ -130,6 +130,10 @@
15 #endif /* defined(HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H) */
16 
17 #if defined(HAVE_NET_IF_H) && defined(HAVE_NET_PFVAR_H)
18+#if __FreeBSD__
19+#include <fcntl.h>
20+#include <sys/ioctl.h>
21+#endif
22 #include <net/if.h>
23 #include <net/pfvar.h>
24 #define TRANS_PF
25--
262.18.0
27