Browse Source

Fix compilation on platforms without IP6T_SO_ORIGINAL_DST

Nick Mathewson 6 years ago
parent
commit
6285d9bdcf
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/or/connection_edge.c

+ 2 - 0
src/or/connection_edge.c

@@ -55,9 +55,11 @@
 
 #ifdef HAVE_LINUX_NETFILTER_IPV6_IP6_TABLES_H
 #include <linux/netfilter_ipv6/ip6_tables.h>
+#if defined(IP6T_SO_ORIGINAL_DST)
 #define TRANS_NETFILTER
 #define TRANS_NETFILTER_IPV6
 #endif
+#endif
 
 #if defined(HAVE_NET_IF_H) && defined(HAVE_NET_PFVAR_H)
 #include <net/if.h>